Label Point formatting with $=<expr>
Moderator: DPlotAdmin
Label Point formatting with $=<expr>
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
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
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>).
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
support@dplot.com
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
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
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
Oops, this one fell through the cracks. Will get on this one as soon as possible.
Visualize Your Data
support@dplot.com
support@dplot.com
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
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
support@dplot.com