Marco Santarelli

Results 52 comments of Marco Santarelli

How about a starter (as in spring-boot-starter) to manage dependencies and configuration?

Chart.js used to have issues when trying to render onto an invisible canvas, or one without a fixed calculated size. With lazy-loaded tabs this can happen expecially if you have...

hey @dudewad Have you read the issue template? there is no rendering logic in this library, we just wrap Chart.js in an Angular-friendly way. See their documentation at https://www.chartjs.org/docs/latest/ and...

Probably decimation needs a re-render of the chart? Can you try using `this.chart.render();` or setting the `decimation.enabled` to `true` from the start to see if it makes any difference?

Can you provide a simple reproduction stackBlitz?

This seems to be triggered by a combination of this change (https://github.com/valor-software/ng2-charts/compare/v3.0.11...v3.1.1#diff-59a80d7c502ca2579fca52689216fbe25c68a75d010871cec3baefdb785fd379R3). Looks like this might be a bug in the ts-jest transformer?

There is an example in the pieChart (https://valor-software.com/ng2-charts/#PieChart) but indeed seems not to work completely as expected. Will have a look.

You can call the `update()` method on the directive instance, that should do the trick. ``` @ViewChild(BaseChartDirective) chart: BaseChartDirective | undefined; [...] chart.update() ```

Probably the tooltip plugin implementation does not check the value again after rendering. Maybe you could use the callbacks and prevents tooltip to show that way: https://www.chartjs.org/docs/latest/configuration/tooltip.html#tooltip-callbacks

This seems to be a valid bug for the library. @dudewad you are absolutely right, are you happy to take a stab at a PR?