PDA

View Full Version : Roll Over Data


john411474
10-14-2010, 08:19 AM
Is it possible to add another field value to the "roll over"

When using "show multiple data sets" would like to add "size"
to the current chart showing store and price see attached jpg

Also can the roll over value (price) be formated to x.xx

thanks

jrt

Dani Chankhour
10-14-2010, 02:51 PM
yes, you can add the size to the point. However that is going to require some custom coding and if you reenter Dynamic Web Charts then those changes will be removed.

In the Dynamic Web Charts folder under the Data folder can you send me the page that ends with _data1.php and start with your file name.

john411474
10-15-2010, 07:34 AM
Attached is the data1.php file saved as .txt

Please provide "remarks" around the the cost field addition
Would like the average price to be 2 decimal points also

thanks
jrt

Dani Chankhour
10-15-2010, 11:05 AM
Try changing this line of code:

<label><?php echo($row_WADWC_data['XLABEL']); ?></label>

to

<label><?php echo($row_WADWC_data['XLABEL'].$row_WADWC_data['DATAGROUP']); ?></label>


to format the price

change the line under to:

<value><?php echo(number_format($row_WADWC_data['YVALUE'], 2)); ?></value>

john411474
10-19-2010, 12:27 PM
Thank you for the quick reply

<label><?php echo($row_WADWC_data['XLABEL'].".\n".$row_WADWC_data['DATAGROUP']); ?></label>

added ".\n". for line break

This put's size in roll over but also put's in x axis, which is ok until there are more than 5-6 data points.

however

to format the price
change the line under to:
<value><?php echo(number_format($row_WADWC_data['YVALUE'], 2)); ?></value>"
this does not appear to work

see attached screen print

thanks again
jrt

Dani Chankhour
10-27-2010, 02:12 PM
It looks like this is a limitation of how the flash displays the value. It only displays an integer but not a float.