Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

combined chart with NumericAxis??

Help
vijay
2006-01-18
2013-01-13
  • vijay
    vijay
    2006-01-18

    Hi,

    I am using Combined Chart tag and use XYSeriesCollection as DataSet. The problem I have is that the domain axis(xaxis) shows the data as time eventhough I am adding just numbers for xvalues(1,2,3,4). Figured out that its an instance of DateAxis. If I want the xaxis to just show numerical values like 1 2 3 4 5 ...so on
    instead of weird 05:30:000 05:30:00:025

    Any help is appreciated.

    Thanks,
    Vijay

     
    • vijay
      vijay
      2006-01-20

      Found a solution for this, the reason for this by default the domain axis is DateAxis for CombinedXyPlot. Just implemented a chart preprocessor and did this.

      plot.setDomainAxis(new NumericAxis());

       
    • vmrao
      vmrao
      2007-09-14

      Can you please post the exact file you have modified. Also, I have no clue on how to implement a chart preprocessor. I am in the same boat. Please help.

      Thanks