ChartJS Tutorials #3 - Diving Into The Data Object

ChartJS Tutorials #3 - Diving Into The Data Object

Syntax

8 лет назад

68,840 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Mustafa SAYIN
Mustafa SAYIN - 19.02.2021 23:06

hi, Urgent, Urgent please. help me for making mysql datas the chart.

I am using node.js, at app.js I am sending sql datas to first page is:(app.js)

app.get('/yillik',(req, res) => {

let sql = `SELECT * FROM results`;

let query = connection.query(sql, (err, rows) => {

if(err) throw err;

res.render('user_resultChart', {

title : 'RAPORLAMA',

users : rows

});

});

});

I can response and make table mysql datas at second page is :( resultChart.esj)

<tbody>

<% users.forEach(function(user){ %>

<tr>

<th><%= user.result0 %></th>

<td><%= user.result1 %></td>

<td><%= user.result2 %></td>

<td><%= user.result3 %></td>


</tr>

<% }); %>

How can I use in Chart. I want to convert to Chart. I want to use HTML not PHP. (because I cant install php server on my customer's server)
Thank you.

Ответить
Maheshi Yatipansalawa
Maheshi Yatipansalawa - 07.11.2020 19:02

Can you let me know how to connect a table in a database for the figures instead of typing the figures in javascript?

Ответить
Data Does Dorian
Data Does Dorian - 18.05.2020 04:13

Hello. What if I want multiple points of data per month?

Ответить
Sleep Deep
Sleep Deep - 04.03.2020 18:38

great Tut guys

Ответить
Brendan
Brendan - 15.01.2020 07:18

Loving the tutorials, thank you sir!

Ответить
DP
DP - 09.03.2019 12:07

How we can add data to our chart dynamically i.e. from database?

Ответить
meena garikapati
meena garikapati - 25.10.2017 15:32

how can get the time gap between two charts that means when first chart was coming after 5 sec second chart was coming like that

Ответить
Rony smile
Rony smile - 29.07.2017 04:58

Please upload tutorial for implementing gantt chart in angular 2

Ответить
Walter de Figueiredo
Walter de Figueiredo - 31.05.2017 13:02

Pls help im having an error main.js:3 Uncaught ReferenceError: Chart is not defined

Ответить
Vamsi krishna
Vamsi krishna - 08.05.2017 09:57

Hello Scott.Currently I'm working on flask jinja templates to render my html.I would like to know how I can render the chart by sending the data to the javascript code?. (The labels are predefined)

Ответить
Roy Edwards
Roy Edwards - 03.02.2017 21:56

Do you have a video on making the Data entries dynamic? (like say from a SharePoint List)

Ответить
Valery Semenenko
Valery Semenenko - 05.10.2016 00:14

Hi Scott! Tell me please, what program you record your videos? You video files get so small. I'm new and my ScreenFlow files are very large - 200Mb.

Ответить
aaron aaron aaron
aaron aaron aaron - 09.08.2016 04:37

H, I really appreciate this great tutorials. Thank you so much.

Ответить
Kenneth Shaw
Kenneth Shaw - 08.07.2016 20:24

Nice tutorial.....can you also go over how to deal with dates, like in ISO format, with the chart.js moment.js plugin?

Ответить
NiceTubeAccount
NiceTubeAccount - 07.07.2016 12:08

This data structure doesn't make sense, author of this lib could make it much more simpler

Ответить
Shreyas Gaonkar
Shreyas Gaonkar - 07.07.2016 01:24

Fixed scale:

options: {
scales: {
yAxes: [{
ticks: {
max: 100,
min: 0,
stepSize: 10
}
}]
}
}

Ответить