Sparklines don't reflect data

Posted by: ed on 29 August 2019, 7:18 pm EST

    • Post Options:
    • Link

    Posted 29 August 2019, 7:18 pm EST

    I have added sparklines to a column in my grid control. I can get them to work but the sparkline doesn’t seem to correlate to data being passed for some of the sparklines. The attached document contains;

    1. Screen shots of the sparklines being displayed
    2. The console log of the data being passed
    3. My code

    The data shown in the console is in the same order as the sparklines. The first 2 look pretty good but the last 2 don’t. On the third one, in addition to the sparkline not correlating to the data, it is also, positioned at the bottom of the cell.

    I appreciate any advice you can give me.

    Thanks, Ed

    Sparklines.zip

  • Posted 30 August 2019, 5:00 am EST

    Hi Ed,

    We were able to replicate the issue using the code snippet provided. You said that the 3rd and the 4th sparklines are not correlated with the data but at our end, the 1st and the 2nd sparklines were also not rendered according to the data provided.

    So, I’ve modified the code so that the sparklines are created as expected. Please refer to the updated sample below:

    https://stackblitz.com/edit/js-rhkgsy

    Let me know if you have any other queries.

    Regards,

    Ashwin

  • Posted 30 August 2019, 8:18 pm EST

    Thanks! That works. I did use the code from the example in the Learn Wijmo example.

  • Posted 1 September 2019, 11:13 pm EST

    Hi Ed,

    Yes, I thought that you were using the code from the sample but you changed it a little bit. Was there a specific reason to change the code from the sample?

    ~regards

  • Posted 3 September 2019, 6:28 pm EST

    No I didn’t intend to change the code.

  • Posted 3 September 2019, 11:13 pm EST

    Hi,

    Ok then. Glad to be able to help. Let us know if you face any other issues.

    ~regards

Need extra support?

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

Learn More

Forum Channels