That’s what I used, thanks.
I can officially say that my work is done and that it is thanks to you too, so here is my last thanks : thank you.
Tanguy, a french amateur programmer.
Why do I have June when the month is 05 in the new Date format? I’m struggling in PHP to take 1 away from every month in order to get the accurate month on the graphe, any idea? My regex did `XXXX, XX – 1, XX’ rather than directly having -1 in the number…
(My regex : preg_replace('/^(\\d+)-(\\d+)-(\\d+)$/', '\\1, \\2 - 1, \\3 - 1', $point['date_value'])
)
PS: It does the same to the days because there is the same problem.
I just changed the interval becuase if I changed the format, all the values would be changed. Thanks again!!
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 :/
Thanks again,
Tanguy.
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.
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?)
Tanguy.
This is a JSFiddle with all my JS into (it’s not working because it’s divided in php files too) :
https://jsfiddle.net/x6ejq8w7/
The fact is that the labelFormatter makes my graph disappear.
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.
Tanguy.
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.
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 ‘%’…
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?
Thanks,
Tanguy.
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!
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 do not have the permission to look for the first link and I already downloaded the sample project that is on this webpage, the one on which I just said I didn’t understand the sample project.
The graph is displayed but I have no points on it and I have 0%, 30% and 60%, even if nothing appears, no dates on the x side.
Any ideas?
Thanks,
Tanguy.
Can’t I just make a for
which will generate the values into the JS? I just don’t know how to do that simple thing so I don’t really understand how all of this will help me, I’m sorry.