胡玮文

Results 283 comments of 胡玮文

Hi, I have not used `OffscreenCanvas`. What is your intended use case? This library only uses canvas to draw the performance-critical part. The axis, legend and some other elements are...

I have implemented this, but currently, no API available. The `nearestPointModel` from this line https://github.com/huww98/TimeChart/blob/ca3073ea82b32a45ef046dac6b651cf6ec802bbe/src/index.ts#L82 has a `points` property, which contains the values of each of the series at the...

@citron It is easier with current beta version. See `chart.nearestPoint` in [this page](https://github.com/huww98/TimeChart/blob/master/docs/authoring_plugins.md). You can write a plugin, or just read it from the chart instance.

That’s because your client time zone setting is +1:00. `baseTime` value 0 means UTC time 1970-1-1 0:00. This behavior is from [d3-scale](https://github.com/d3/d3-scale#time-scales). I haven’t investigated how to show relative time...

@wujekbrezniew This is not as easy as I think. `d3-scale` seems not providing a scale type for time spans. Maybe I need to roll my own. I have added a...

@citron The axis is rendered by D3. So anything accepted by [d3-axis](https://github.com/d3/d3-axis) should work. Theoretically, you can write your own `scaleRelativeTime` or similar, then pass it to TimeChart. I just...

For discrete symbols, please see [this demo](https://huww98.github.io/TimeChart/demo/plugins/events.html). You can write a plugin just like the [event plugin](https://github.com/huww98/TimeChart/blob/master/src/plugins_extra/events.ts). For bar-charts, what's your use case? If you just need a small number...

I've added a new `lineType.NativePoint`. It is square and the shape cannot be customized (but the size can).

Currently no built-in support. To implement this, we need every `chart.model` to reference the same `scale` object. https://github.com/huww98/TimeChart/blob/fb4699b8f8f5e0d3e97c602bcb245e243f769200/src/renderModel.ts#L27-L28 Then trigger an `update()` for all charts when users interact with any...

> I have tried using dispose() then instantiate a new chart but the chart is not displayed This is the current limitation. The data array records whether the data have...