Now work really fine! thank u so much Priyanka !!!!!! my problem was that the date selector kept appearing, but in the end what I did is that I send the date from the form with get and I show all the data in a second web.
I try again…
It does not work for me. The purpose of the web is to select a date in a form, and in that same web, to show the queries that are made to the database and that canvasjs draw the graph with the sales data.
I check that the data enters the array:
array in json with numeric check: [{“label”:”TPV 1″,”y”:2},{“label”:”TPV 2″,”y”:2},{“label”:”TPV 3″,”y”:2},{“label”:”TPV 4″,”y”:482}]
which I do not know why canvasjs does not draw it :(
—- I think canvasjs has no data because it runs in head. – first: canvas draws the graph (but no have data). – second: I request the date in the form. – third: I make operations with data, variables, I draw the html table … – 4: in the end, I call the chartcontainer, but this has no information, because it has not returned to the head.
Ok. I try this weekend. Thanks
Thank you very much for your interest in my problem
Onedrive
The sql and the php file.
ok, I try to reduce the code by removing unnecessary information
Can the problem of how do I get the variable come?
$f_1 = mysqli_fetch_row($result_f1)
and then I echo the variable $f_1[0]
I try this example : https://canvasjs.com/php-charts/chart-index-data-label/
but is similar, don’t draw the data. I use xampp and i have enable the json json version 1.6.0