Okay
  Public Ticket #2912785
Insert variable in data point on chart
Closed

Comments

  • Kim Pham Nguyen started the conversation

    Dear TMS.

    Is there any way that I can include a variable in the data point on a chart? 

    For the below picture I want it to say for example 23 (50%) where the number 50 is some other data from an SQL database that I have a connection to. And I'd like this to be automatic for each of the data points, so as to 'point' to a different value in the SQL database.

    3929574039.png

    Best regards, Kim.

  •  472
    Isidora replied

    Hi Kim,

    Thank you for your purchase.

    That is the default behavior of the charts engine, 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.

    Thank you for understanding

    Best regards.

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables