XChart icon indicating copy to clipboard operation
XChart copied to clipboard

Hide x-axis if no data

Open benjamin658 opened this issue 2 years ago • 1 comments

Hello,

I attempted to plot timeseries market data using this awesome library. However, I couldn't find a way to remove holidays or the x-axis labels for dates with no corresponding data. I tried adding multiple series as suggested in this #611 issue, but it didn't seem to work.

As you can see the chart still display a time gap.

Screenshot 2023-06-28 183847

I also attempted to rollback to the older version that had the chart.setXAxisLabelOverrideMap(xMarkMap) API, but unfortunately, it didn't work either.

Any suggestions would be greatly appreciated.

Thanks!

benjamin658 avatar Jun 28 '23 10:06 benjamin658

Even if you would make it work, the result will look weird: The labels on the x-Axis won't indicate where the gap in the data is. You could however use continous numbers for the x-Axis and hide the labels.

Flole998 avatar Jul 06 '23 21:07 Flole998