Adding tilted labels to TimeSeriesChart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
kdevaraj
Posts: 1
Joined: Tue May 11, 2021 4:07 pm
antibot: No, of course not.

Adding tilted labels to TimeSeriesChart

Post by kdevaraj » Tue May 11, 2021 4:23 pm

I am new to Java and JFreeChart. I created a time series chart with multiple series as below. I would like to add labels for the datapoints in each time series.
1. As there are a lot of datapoints, adding label to each datapoint make the graph to look congested. So I want to add datapoint to only first week on every month.
2. I want to tilt the label by certain angle so that they do not overlap across time series.
3. I want to use custom colors for the labels.

Any sample code snippet would be highly helpful to me.

Image

Locked