Label Point formatting with $=<expr>

Found a bug? Tell us about it here

Moderator: DPlotAdmin

Post Reply
raswaim
Posts: 69
Joined: Thu Jan 06, 2005 3:43 pm
Location: Houston, TX

Label Point formatting with $=<expr>

Post by raswaim »

When using $=(round($Y,3)) to limit significant digits for point labels, I noticed that if I'm using $X in the same label, the $X reverts to the the default numeric format. Specifically, when using a time/date formatted X axis, instead of the label printing the $X date in the same format as the X-Axis, you get the Excel numeric date instead. I'd be OK with this if there was something like a "DateFormat(<X>)" function to apply, but right now I have to use two labels if I want X date format and Y data.
- RAS
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Thanks, Richard.

You'd also have that problem with Y if it used some other number format (currency, for example). And there's the problem with automatically handling this. If the equation contains both X and Y, which number format should be used?

I think the answer is probably what you've already mentioned - something like $FORMAT(<expression>,<format code>).
Visualize Your Data
support@dplot.com
raswaim
Posts: 69
Joined: Thu Jan 06, 2005 3:43 pm
Location: Houston, TX

Post by raswaim »

Yes - I realized after I posted that a generic formatting call (like printf) would probably be the best solution. I could set precision where I wanted it (or even completely different formats?). For example, I frequently have plots which have time down to HH:MM on the X axis, but for a label I'm trying to highlight an event down to seconds. And for the Y axis I've run across situations where I'd like to tag a value in decimal or hex when that isn't the format of the Y-axis...
- RAS
raswaim
Posts: 69
Joined: Thu Jan 06, 2005 3:43 pm
Location: Houston, TX

Post by raswaim »

By any chance have you had some time to look at this option more? I think I just ran into another instance where I can't work around the default format... I'm doing an XY bubble plot, and I want to label a point with it's "Z" value, which happens to be a time in this case. The excel value 42018.234 wasn't as informative a label as I would like. Is there any way for me to affect the displayed format? Thanks - R
- RAS
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Oops, this one fell through the cracks. Will get on this one as soon as possible.
Visualize Your Data
support@dplot.com
raswaim
Posts: 69
Joined: Thu Jan 06, 2005 3:43 pm
Location: Houston, TX

Post by raswaim »

Hmmm.... and into the crevasse beneath the cracks? :lol:
- RAS
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

It won't be in tonight's update, but I'll definitely 100% for sure address this in the next update.
Visualize Your Data
support@dplot.com
raswaim
Posts: 69
Joined: Thu Jan 06, 2005 3:43 pm
Location: Houston, TX

Post by raswaim »

Just wanted to make sure that this was still on the list... Your normal turnaround speed for things like this has me spoiled.

THanks - R
- RAS
Post Reply