GithubHelp home page GithubHelp logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024
Can you please provide a code snippet such as we can replicate this?

Thanks,

Dan

Original comment by [email protected] on 21 Jun 2010 at 6:23

from achartengine.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024
If this is the same issue as the one I am having, then this means the following 
method:

org.achartengine.chart.XYChart.getLabel(double)

uses the double value to draw the label. But for a TimeSeries, you want to draw 
a java.util.Date label, not a double label. The mismatch between a double and a 
long in the method:

org.achartengine.model.TimeSeries.add(Date, double)

means that you may lose some precision when trying to convert the double back 
to a Date in the previously metioned 
"org.achartengine.chart.XYChart.getLabel(double)" method. You do this to 
convert the double back to a Date, as you want to display a Date label.

Is there any other way of registering a "LabelProvider" that the chart 
delegates to when creating appropriate labels for the chart? Something like:

interface LabelProvider {
  String getLabel(Series series, int index);
}

Original comment by [email protected] on 25 Jul 2010 at 9:10

from achartengine.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024
Please provide some code snippet that will help me replicate the problem.
Currently, I cannot replicate this and I also don't imagine why there could be 
loss of data while converting between long and double.

Original comment by [email protected] on 16 Nov 2010 at 5:31

from achartengine.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024

Original comment by [email protected] on 3 Jan 2011 at 2:13

  • Changed state: Invalid

from achartengine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.