I have a stacked bar chart and want to give it a dollar sign in front of each number. Since I can not use two strings, how do I do this/ I created a MYSQL view using the CONCAT function to add a dollar sign but then it needs to import it as a string. My dates are also a string since the query is converting dates to day names. I tried adding a $ in the table but it wont transfer to the chart for some reason. How do I fix this?
It is a callback for adding a $ sign prefix to one Y column, and the % suffix for the other column, but you can use it for the X column, if you alter it a bit.
I have a stacked bar chart and want to give it a dollar sign in front of each number. Since I can not use two strings, how do I do this/ I created a MYSQL view using the CONCAT function to add a dollar sign but then it needs to import it as a string. My dates are also a string since the query is converting dates to day names. I tried adding a $ in the table but it wont transfer to the chart for some reason. How do I fix this?
Hello again Brett
Prefixes and suffixes are not carried over from wpDataTables into charts, the chart engines don't allow it, so you will need to use callbacks.
Please take a look at this page in our FAQ section.
It is a callback for adding a $ sign prefix to one Y column, and the % suffix for the other column, but you can use it for the X column, if you alter it a bit.
So, you can try something like this:
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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