|
Chart Director Instruction Manual? |
Posted by TMartinez on Feb-03-2010 01:57 |
|
Is there a Chart Director Instruction manual? I've been handed over a project from an employee who has left the company and I have no instructions on how to modify/create charts. I've got a basic understanding on how this works but I'd like advance knowledge.
One question I'm trying to figure out right now is how do I set an array for the tick marks in a guage chart and how do I change the color and font of the tick marks? |
Re: Chart Director Instruction Manual? |
Posted by TMartinez on Feb-03-2010 02:19 |
|
I've found the CHM file and I'm browsing through it now but it appears that I cannot modify the tick marks how I desire.
Usage
setScale(lowerLimit, upperLimit [, majorTickInc [, minorTickInc [, microTickInc ]]])
But what I would like to do is set the majorTick using an array?
Is this possible? |
Re: Chart Director Instruction Manual? |
Posted by Peter Kwan on Feb-03-2010 21:42 |
|
Hi TMartinez.
By using an array for the majorTick, I assume you mean you want to use an array to specify the positions of the ticks (instead of their lengths, colors, labels, etc).
You may use BaseMeter.addLabel to specify the position of a tick. For example (as you have not specified your programming language, I will use VB/VBScript):
Call m.setScale(lowerLimit, upperLimit, 0)
For i = 0 To Ubound(myTickArray)
'Add a tick only, without any label
Call m.addLabel(myTickArray(i), " ")
Next
You may use BaseMeter.setMeterColors to set the colors of the ticks. For example:
Call m.setMeterColors(&H000000, &H000000, &Hff0000)
You may use BaseMeter.setLabelStyle to set the fonts of the labels. For example:
'Arial Bold 8 point black
Call m.setLabelStyle("arialbd.ttf", 8, &H000000)
Hope this can help.
Regards
Peter Kwan |
|