Wayne Dahl wrote:
> My data is floating point but the value balloon shows a rounded integer
> value.   It also "points" to the rounded integer value above or below
> the actual graph line.
> 
> Is there any way to change this?

Yup.

Look at this example:

http://simile.mit.edu/timeplot/examples/energy/index.html

The Gasoline price is not rounded. In order to achieve this you have to
add the property "roundValues: false" to the Timeplot.createPlotInfo()
call, for example:

 Timeplot.createPlotInfo({
                    id: "Gas Pricing",
                    dataSource: dataSource2,
                    timeGeometry: timeGeometry,
                    valueGeometry: geometry1,
                    lineColor: color4,
                    showValues: true,
                    roundValues: false
 }),

BTW, the reason why we round values by default is that javascript does
not have the notion of integer numbers... every number is a floating
point one, so it gets pretty ugly to have all those trailing zeros (or
worse, things like 10.00000000000003 as for rounding errors).

Hope this helps.

-- 
Stefano Mazzocchi
Digital Libraries Research Group                 Research Scientist
Massachusetts Institute of Technology
E25-131, 77 Massachusetts Ave               skype: stefanomazzocchi
Cambridge, MA  02139-4307, USA         email: stefanom at mit . edu
-------------------------------------------------------------------

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general
  • Timeplot 1.0 Wayne Dahl
    • Re: Timeplot 1.0 Stefano Mazzocchi

Reply via email to