Skip to content

Comments

Time series example showing the need for XYLineData#488

Open
escay wants to merge 1 commit intoxdev-software:developfrom
escay:issue_ticks_source
Open

Time series example showing the need for XYLineData#488
escay wants to merge 1 commit intoxdev-software:developfrom
escay:issue_ticks_source

Conversation

@escay
Copy link

@escay escay commented Feb 10, 2026

Not really a pull request, but an example of a Time series chart where I need support for XYDataSet.
Unit test shows working example.

Question is: could support for XYDataPoint be supported in LineData?
Like I did in this example where I used:

        XYLineChart chart = new XYLineChart(new XYLineData()
                .addDataset(new XYLineDataSet()
                        .addData(new XYDataPoint(1699457269877L, 20))
                        .addData(new XYDataPoint(1700047109694L, 20))

This is a variant of Time Series:
https://www.chartjs.org/docs/latest/axes/cartesian/time.html
x-axis date is replaced with epoch time like 1699457269877L.

where gaps are possible in the timeseries and different intervals might occur, therefor not using equidistant spread from:
https://www.chartjs.org/docs/latest/axes/cartesian/timeseries.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant