Okay
  Public Ticket #2965233
linking a third variable determine dot color?
Closed

Comments

  • Dan Rust started the conversation

    Question for the community the community: 

    I am hoping to figure out how to correct axes on my charts. All I really want is a scatter plot, dot plot, or even a histogram where the dot is plotted using an x int and y int, but the dots are colored according to another variable (i.e. one of three from a drop-down), like the ones pictured here: https://wpdatatables.com/types-of-charts/  

    Perhaps I am overlooking a setting? 

    I keep running into the graphs trying to force the string variable or the color variable into the graph.  If you could help me figure out how to better edit the x and y axes, and change the color of the dots according to a third variable, I would greatly appreciate it!!!

  •  2,498
    Aleksandar replied

    Hello Dan

    Thank you for your purchase.

    Chart engines don't allow more than one string-type column in any chart, but you don't have to use string-type columns, you can use only Integer columns if you want.

    Unfortunately, if you do add a string-type column, it will be plotted on the X-axis, and it can't be moved to represent a tooltip. Maybe it can be done with some wpDataCharts callbacks, but we haven't had the chance to play around with this.

    • 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.

    I hope some of our users will have some useful advice for you.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

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

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables