Bar Chart DataSet title #115
JSFitzsimmons
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I would like to recommend you add a label to the data set for the bar graph example.
I am new to the vue chart system and was rather confused as to why there was an "undefined" floating above the bar graph in the example code.
I eventually found the answer through chartjs's documentation, but I feel like this humble update would help other beginners like me avoid wasting time.
const chartData = computed(() => ({
labels: ["Paris", "Nîmes", "Toulon", "Perpignan", "Autre"],
datasets: [
{
label:"Data Set Label", // <====
data: data.value,
backgroundColor: [
"#77CEFF",
"#0079AF",
"#123E6B",
"#97B0C4",
"#A5C8ED",
],},],}));
Beta Was this translation helpful? Give feedback.
All reactions