• Dear All,

    Q1,

    Considering we need to add more than 80 values into the chart and we use stacked columns, is there a way of showing only 12 columns on the frontend chart at once instead of all squeezed 80 and having something like a left and right arrow to scroll back and forward?

    Q2,

    How do you export all of the data from all charts to CSV and import everything back after modifying the CSV file? We know how to do it with a single chart however, we can’t find multiple chart data export and import. Please advise. Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author methnen

    (@methnen)

    Q1: Probably but it would involve hacking Chart.js to do something other than it’s default behavior. This is pretty far out of scope for what the plugin itself is intended to do.

    Q2: There’s no mechanism for this and it’s not an intended usage. The idea, generally speaking is that you manage the data inside of M Chart going forward. The individual CSV import/export is there for convenience of getting a chart’s data in and out of the system, but there’s no mechanism for a bulk import export and none planned.

    Thread Starter westmind

    (@westmind)

    Hi Methnen,

    Thank you for your reply. You were always faster than light 😉

    Are you able to achieve what was described in Q1 considering we’re ready to cover the cost of the development?

    Plugin Author methnen

    (@methnen)

    I would imagine so but, I’ll admit I’m not really in a position where I could afford the time a the moment.

    Just a bit too much going on personally and professionally at present to be confident I could do it in a timely manner without sacrificing something I can’t really afford to sacrifice.

    I do have a suggestion of something to try though… that’s occurring to me as I think through it in a bit more detail and it’s a pretty easy (potentially) solution.

    Just as a though experiment, wouldn’t putting and overflow-x: auto on the container div of the chart.js chart and then setting a width that’s some multiple of the number of columns be somewhat of a solution for this?

    You’d end up with the chart rendered quite wide so it would be still readable and a horizontal scroll would reveal the rest and you could style that up to provide indicators that there’s more off screen and/or use a custom scroll bar to handle the interface in an accessible way as well.

    Obviously you’d need to try it to confirm, but just thinking out loud, I think that could work without actually needing to do any custom Chart.js stuff. All you’d need is some fairly simple JS or jQuery code to insert itself under the chart when it renders (there’s some hooks for that) and then modify the containers as needed to set the widths and overflow value if necessary.

    Plugin Author methnen

    (@methnen)

    For a fully functional/stylable and still accessible scrollbar I’ve had good experiences with this one in the past:

    https://github.com/bitshares/perfect-scrollbar

    • This reply was modified 4 months, 1 week ago by methnen.
    Thread Starter westmind

    (@westmind)

    Hi,

    I appreciate your assistance and advice on this matter. A big Thank You!
    Unfortunately, I won’t be able to implement it myself but I will try to get someone to look into it. Coding isn’t my thing 😉

    I know I should open another topic, but I will take the risk and ask: Is it possible to edit the Excel part on the front end to modify the chart?

    Thanks once again and all the best.
    W.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.