BUG: Line/Area FlexCharts have error with dataLabel.position being set

Posted by: james.ingham on 11 June 2019, 2:28 pm EST

    • Post Options:
    • Link

    Posted 11 June 2019, 2:28 pm EST

    I use Angular. Following error is shown when I set:

    flexChart.dataLabel.position = 1
    

    On Line or Area chart:

    wijmo.js:13 ** Assertion failed in Wijmo: Number expected.
    assert	@	wijmo.js:13
    asNumber	@	wijmo.js:13
    t.formatNumber	@	wijmo.js:13
    theChart.flexChart.dataLabel.content	@	ui-grid.component.ts:6275
    e._getLabelContent	@	wijmo.chart.js:13
    t._renderLabel	@	wijmo.chart.js:13
    t._renderLabels	@	wijmo.chart.js:13
    t._renderLabels	@	wijmo.chart.js:13
    e._renderLabels	@	wijmo.chart.js:13
    e._renderChart	@	wijmo.chart.js:13
    e._render	@	wijmo.chart.js:13
    e._refreshChart	@	wijmo.chart.js:13
    e.refresh	@	wijmo.chart.js:13
    (anonymous)	@	wijmo.js:13
    push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask	@	zone.js:421
    push../node_modules/zone.js/dist/zone.js.Zone.runTask	@	zone.js:188
    

    It works well on other type of charts, even FlexPie is good.

  • Posted 12 June 2019, 7:10 pm EST

    We are sorry but we were not able to replicate the issue at our end. Please refer to the sample below that we used to replicate the issue:

    https://stackblitz.com/edit/angular-vwve9s

    Could you please tell us if we are missing something or you may provide your own sample that replicates the issue?

  • Posted 16 June 2019, 9:51 am EST

    Thanks. You are correct. I tested it again, and it turns out to be an issue we wrote in dataLabel.content function.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels