ljvmiranda921 / comments.ljvmiranda921.github.io

Blog comments for my personal blog: ljvmiranda921.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to make a CanvasJS Chart from MySQL Data

ljvmiranda921 opened this issue · comments

Comment written by Widyaning Chandramitasari on 02/21/2017 09:51:13

Like thissss !!!

Comment written by Lj Miranda on 02/21/2017 14:29:34

Hehehe thank you Sari! I know you like SQL :)

Comment written by Widyaning Chandramitasari on 02/23/2017 14:55:54

Yessss. Really !! This is so interestingg !!

Comment written by Miguel Alejandro on 03/20/2017 21:29:30

Thanks so much and very good job!!!

Comment written by Lj Miranda on 03/21/2017 01:29:27

Hi Miguel, thank you so much! I hope this helped you in your project :)

Comment written by Miguel Alejandro on 04/04/2017 02:31:00

Yes you helped me a lot!!! but I have a question how to display two series of another table "mytable2" with the same structure but with different data in the same chart?? something like that
http://jsfiddle.net/canvasj...

Comment written by Lj Miranda on 04/04/2017 12:00:17

I think you can package everything nicely in a single json file. That is, you add an upper-level hierarchy, say, "series1":{all series 1 data goes here}, "series2":{all series 2 data goes here} and just access them using your usual javascript :)

Comment written by Miguel Alejandro on 04/04/2017 21:25:29

What I did was something like
Var dps = [];
Var dpstwo = [];
var dataLength = 0;
$.getJSON ("fileone.php",
For (var i ...
dps.push({"label" ....
}
});
$.getJSON ("filetwo.php",
For (var m = dataLength; i < diferent.length; i++){
dpstwo.push({"label"
}
});
after....
Data: [
{
Type: "spline",
DataPoints: dps
{
{
Type: "spline",
DataPoints: dpstwo
}
]
chart.render();
Greetings from Mexico!!!

Comment written by Njhelloworld on 09/02/2017 03:35:51

Hello!! Good Day. I hope this query of mine will be read. I would like to ask how can we divide the sum of a the overall column data through the number of rows? https://stackoverflow.com/q... I am hopeful that someone could help me!

Comment written by Lj Miranda on 09/19/2017 01:25:00

Hi!

Sorry I wasn't able to reply immediately. How's this question going? It seems that it has been solved already in StackOverflow. Would you please provide a minimum working example so that I can replicate your problem?

Cheers!

Comment written by Israel8806 on 09/07/2018 08:46:58

https://uploads.disquscdn.c... So an Irishman.... Walks out of a bar....

Comment written by Vincent Kiplangat on 03/07/2019 10:18:53

Mine worked locally but when i hosted it gave me this error "Failed to create chart: can't acquire context from the given item"