Closed bezkel closed 2 years ago
The Chart.js example was removed in 9b36f6806243a17c57fbaf82b9a36448d79c2f3f
Can you post the error you are seeing?
I get 36 errors - all are TS2304 errors like this:
node_modules/chart.js/types/color.d.ts:1:47 - error TS2304: Cannot find name 'CanvasPattern'.
export type Color = string | CanvasGradient | CanvasPattern;
All are kind of this types: CanvasPattern, HTMLCanvasElement, CanvasRenderingContext2D, OffscreenCanvas, CanvasLineCap, CanvasLineJoin, HTMLImageElement, CanvasRenderingContext2DSettings.
I can skip this errors by using "skipLibCheck": true
in tsconfig.json and it could be served.
But if I open it, it results in this error:
Failed to create chart: can't acquire context from the given item
And which version of Tabris.js are you using?
I use tabris 3.7.0
has anyone tried this and have a solution for me?
Does tabris 2.x developer app include charts.js? I get a "module not found" error.
The chart.js library is not available for consumption except in the examples. In order to test it out you'll need to install the tabris-cli
and include the dependency in your project's package.json
.
Closing for now. Please reopen if you have any more issue.
Hi. On tabris.com is written that I can use chart.js I tried to use it with tabris 3.7.0 but it doesnt work. How could I use it and which version should I use? I dont want to reinvent the wheel and generate graphs by myself on a canvas.