scatter plot with dates at x axis — add custom labels on X axis

前端 未结 3 989
梦如初夏
梦如初夏 2021-01-17 00:05

I want to have a scatter plot with dates in x-axis.

Because if I use ChartFactory.getTimeChartView I receive a line graph and the problem is:

3条回答
  •  独厮守ぢ
    2021-01-17 00:25

    You can add custom labels this way:

    renderer.addXTextLabel(x, "label");
    

    If you want to keep using the time chart approach then you can do this:

    lineRenderer.setPointStyle(style);
    lineRenderer.setLineWidth(0);
    

    where lineRenderer is a XYSeriesRenderer inside your XYMultipleSeriesRenderer.

提交回复
热议问题