Home › forums › Using CanvasJS › Multiseries column charts
Tagged: Charts, database, php
This topic contains 37 replies, has 8 voices, and was last updated by Vishwas R 1 year, 3 months ago.
I have updated the link please take a look.
I do have this extension since I use SSMS and not Wamp but thanks anyway. What about the code I just posted? It should work to fill the graph with the points but there is no change :/
I’ve done the job, it’s working now. Thanks for your help, could you just please delete the hastebin files I just dropped please? Thanks!
Is it otherwise possible to divide the formatted numbers axis labels? For example, I actually have 100000% on the left for the first value which is ‘1000’, 175000 for the value ‘1750’, I’d like to have 0% for the first value, ‘1000’ and the next numbers follow that logic. Is it possible?
Please provide a jsfiddle or pictorial representation of your requirement so that we can understand your problem better and help you accordingly.
This is a screen of the graph : https://gyazo.com/808e195e564f210f30e78ae03862a158
As you can see, the percentages are really high, I did valueFormatString: "0%", in the code, so that’s why they are 100 times higher but I need the ‘%’ next to my values… And still, even without the ‘%’, they are between 150 and 2700, the first value ‘1000’ should be at 0 but is at 1000 without the ‘%’…
Okay, I did valueFormatString: "0'%'", to not have the values 100 times higher but they are still 100 times higher than what I would like.
Kindly have a look at this jsfiddle. And also we have removed your hastebin links as requested.
Thanks for the example, I’m going to try it as soon as my graph will resurrect (I made him die, no wonder how).
Thanks for all the help again and I apologize for the big mess with all my messages.
This is a JSFiddle with all my JS into (it’s not working because it’s divided in php files too) :
The fact is that the labelFormatter makes my graph disappear.
You have missed a comma after labelFormatter function. Hope that solves the problem.
God… Yes it does, thanks a lot.
Unfortunately, the line keeps being away from the very left of the graphe and is still at 10% and not at 0%, where it should start. I tried a startValue: 0, or -10 but it didn’t change anything. Here is a pic :
https://gyazo.com/83341a65ec63e7e9c889396bcb9b6cad – It’s the blue line.
(By the way, you can see 01/08, 01/10, etc., can I use the same function labelFormatter to make it 01/098, 01/09, etc. one by one?)
What’s strange is that the line is withered away only on this graphe and not on the 3 other I have but there isn’t any difference in the code.
You can let go what I just wrote earlier, I fixed that.
Otherwise, I have this last problem : https://gyazo.com/7547addaef4d8987ca4a2c2f335eb24c
What do you think about it? All the numbers are perfect except this one :/
You can use valueFormatString to format label of the Axis Y.
If it doesn’t solve your issue please create a jsfiddle.
You must be logged in to reply to this topic.