ahmed.hmani Posted March 3, 2021 Share Posted March 3, 2021 Hi,i m using this time series chart and i need to make it print the dates that I got in my Data set (added with red by me in the photo), so i can see every point date. (and not dates around the points dates)I tried to use this customizer for this chart but i can't find how to print the resolute of the dataset values:public class BubbleChartCustomizer implements JRChartCustomizer { @Override public void customize(JFreeChart jFreeChart, JRChart jasperChart) { Plot plot = jFreeChart.getPlot(); XYPlot myPlot = (XYPlot)plot; //dataset timeseries TimeSeriesCollection inputDataSet = (TimeSeriesCollection )myPlot.getDataset(); //dataset per stacked area graph TimeTableXYDataset ti = new TimeTableXYDataset(); List seriesList = inputDataSet.getSeries(); //loop through series items to copy to other dataset: TimeTableXYDataset Iterator it = seriesList.iterator(); while (it.hasNext()) { TimeSeries serie = (TimeSeries)it.next(); int itemCount = serie.getItemCount(); for(int i =0; i<itemCount; i++) { //add serie to other dataset ti.add(serie.getTimePeriod(i), serie.getValue(i), (String)serie.getKey(), false); } } }}Can anyone help me with this customizer or is there any example that can help me fix this? Thanks for your Help, Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now