Hello,
I was wondering if anyone had come up with a way to figure the width of a chart in pixels?
The problem: you use drawTextPixel to create a small grid to display some metrics...and get it all set up nice and smart on your desktop...set off to the right of the 'bleeding edge'...on the right side of the chart. Then you put it up on your laptop and the x-axis is all messed up...because the pixel count (for a chart) is different on your laptop than your desktop.
I can imagine a simple algorithm that would loop from 1 to 'max pixel width' once when the script is initializing but am at a loss when it comes to definite syntax. Anyone know any other keywords that relate to pixels in a chart that might work?
Any help much appreciated,
gg
I was wondering if anyone had come up with a way to figure the width of a chart in pixels?
The problem: you use drawTextPixel to create a small grid to display some metrics...and get it all set up nice and smart on your desktop...set off to the right of the 'bleeding edge'...on the right side of the chart. Then you put it up on your laptop and the x-axis is all messed up...because the pixel count (for a chart) is different on your laptop than your desktop.
I can imagine a simple algorithm that would loop from 1 to 'max pixel width' once when the script is initializing but am at a loss when it comes to definite syntax. Anyone know any other keywords that relate to pixels in a chart that might work?
Any help much appreciated,
gg
Comment