huww98 / TimeChart

An chart library specialized for large-scale time-series data, built on WebGL.

Home Page:https://huww98.github.io/TimeChart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

interpolation line

temaivanoff opened this issue · comments

Hi, how hard is it to do?

I would consider this out of the scope of this project. Drawing curves with WebGL is highly inefficient. chartjs uses canvas 2D, which supports curves natively.

ok, performance will be greatly reduced? chart js very very very very slow one million points, just can't be used

WebGL draws triangles, you can imagine how many triangles are needed to form a visually smooth curve.

@huww98 ok, now I understand what the problem is. As I understand it, I only have points, lines and triangles at my disposal ?

basically, you only have triangles. Although WebGL is capable of drawing points and lines, you cannot control the point size or line width. So I'm not using them in this project. All lines drawn by lineChart.ts are composed of triangles.