Okay
  Public Ticket #2874191
Passing parameters to wpDataCharts
Closed

Comments

  • St Peter\'s School started the conversation

    I have data charts on the old ASP.NET MVC web app showing the same dataset from a different year with customised functions. I want to achieve similar feature via wpDataTables on WordPress site. Its features seem quite limited. Is there a way to do this?

    Have tried to pass parameters to a chart and it doesn't work.

    https://owlfarm983051783.wpcomstaging.com/test

    Please see screenshots below

    9994958369.png


    Feature on the old ASP.NET MVC web app below

    9468586358.png


  • [deleted] replied

    Hi Salomon

    Thank you for reaching out to us.

    The default behavior of the charts engine cannot be customized, but if you need some custom solution you can check our documentation about wpDataCharts callbacks

    • Every chart exposes several options that customize its look and feel. Charts usually support custom options appropriate to that visualization. wpDataChart callbacks allow adding options that are available in Google Charts APIHighcharts API, and Chart.js API
    • All necessary resources are available in charts engines API (depends on which one you use). Every engine has a different approach to chart settings. In wpDataChart callbacks, you have to adopt those settings to the wpDataChart object (you can take a look at examples for each engine in our documentation, and also in the Support help center). A huge number of examples for any area of programming can be found on stackoverflow.com (typing your problem in google and at the end add "site: stackoverflow.com" and Google will search only that website). Also, a lot of examples of charts, chart settings, and customization can be found on jsffidle.net (typing in google for example "line chart highcharts jsffidle")
    • Please note that using hooks or wpDataTable and wpDataChart callbacks requires a certain level of programming skills and included support refers only to advice.