Skip to content

If the category value has # in it. While downloading as csv it breaks the CSV data #2665

@panimaya-gembrill

Description

@panimaya-gembrill

Please find the below code pen sample for that.

Steps to Reproduce

  1. Create basic column chart from the demo code
  2. Change below xaxis categories
    xaxis: { categories: ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct'], },
    as follows
    xaxis: { categories: ['Feb#', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct'], },
  3. from the toolbar download CSV

Expected Behavior

  1. It should download all data as CSV without breaking
  2. refer below screenshot
    image

Actual Behavior

Please find screenshot of the CSV file downloaded
image
Please find the below pen for the issue
https://codepen.io/panimaya-albert/pen/dyRjywm
Please find this video for the issue
https://share.vidyard.com/watch/daui7QsCLqetfnE7iKBr5v?

Reproduction Link

https://codepen.io/panimaya-albert/pen/dyRjywm

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingverified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions