Okay
  Public Ticket #3037079
Many questions about chart customization
Closed

Comments

  • Pablo Torres started the conversation

    Hi, I have several questions, I don't know if I should open a ticket for each, if that was the case I'm sorry.

    First question: I've read the documentation here https://wpdatatables.com/faqmd/change-color-pie-chartgoogle-chart/ about changing pie colors and with that I've managed to change the slices colors, set the legend to "labeled" and change the legend color with textStyle, but I can't figure out how to change the color of the percentaje on the legend as it is unreadable on my design, in this image it's better explained: https://file.hotmarketing.cloud/Wnuyvmn6. How can I make the percentaje white as with the title?


    Second question: For really small amounts, the chart groups them in an "others" category, please see here: https://file.hotmarketing.cloud/Z4u7RnXD. I don't want that, even with a micro slice, I want the slice to be named. I read the google charts documentation and it says I should use the VisibilityThreshold property but I can't seem to make it work, I'm adding it to the callback as obj.options.VisibilityThreshold = 0, is it correct? because it doesn't work. In the worst case, if I can't prevent the grouping from happening, can I translate the word? It says "others", how can I translate it?


    Third question: I've configured my table to sum all the numbers in a column, and I get a last row with the simbol ∑ and the sum. But I don't think many people know that the simbol ∑ means sum. Is it possible to change that simbol for the word "total"? Something like this: https://file.hotmarketing.cloud/YEur24Qx


    Thank you for your time.

    Pablo T.

  •  2,572
    Aleksandar replied

    Hello Pablo

    Thank you for your purchase.

    It's OK for now, but in the future, please split questions into separate tickets.

    #1 and #2 - wpDataTables follows the logic of chart engines, and other than making modifications within the chart wizard, there are no other settings to tweak them. Modifying these is only possible with wpDataCharts callbacks. At the moment, all callbacks that we have are located in our FAQ section and we haven't done anything similar in the past. 

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

    #3 - You can go to wpDataTables settings and in there change the label of calculation functions:

    7578688630.png

    Please let me know if you have any further questions.

    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