ItemFormatter is not working for line chart when symbolSize is 0

Posted by: Yifan_Zhang on 16 January 2020, 5:59 am EST

    • Post Options:
    • Link

    Posted 16 January 2020, 5:59 am EST

    See this example: https://jsfiddle.net/29dvpbyg/

    If you change the symbolSize from 1 to 0, then the itemFormatter will no longer work. We need to format/style the line chart without symbols. Can you please help fix this? Thanks.

  • Posted 16 January 2020, 5:25 pm EST

    Hi Yifan,

    We have forwarded a bug report to the dev team with internal tracking id 417418. We will update you as soon as this issue is fixed.

    In the meantime, you can hide the symbols using CSS. Add a CSS class to the series by using the cssClass property and set the display of the symbols inside this class to none. Please refer to the code snippet and the sample below:

    In JS;

    series: [
                {
                  binding: "downloads",
                  name: "Downloads",
                  chartType: "LineSymbols",
                  symbolSize: 1,
                  cssClass: 'hide-symbols'
                }
    ],
    

    In CSS:

    .wj-series-group .hide-symbols ellipse {
            display: none;
    }
    

    https://jsfiddle.net/qrsLaz2g/3/

    Regards,

    Ashwin

  • Posted 17 January 2020, 7:06 am EST

    Thank you. That workaround works. Hopefully, we can have a genuine fix soon!

  • Posted 26 January 2020, 7:56 pm EST

    Hi Yifan,

    The issue has been fixed in the latest nightly build of wijmo. You may download the build from the link below and verify it at your end. We will notify you as soon as the next stable build is released.

    https://1drv.ms/u/s!AohkImDe_cXOiSlHHTY1oUtLGc3Z?e=T26jLa

    PS: Nightly builds have not passed through the QA cycles as all of our release builds do. Therefore, they are not suitable in a production environment.

    ~regards

Need extra support?

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

Learn More

Forum Channels