score:1
Accepted answer
in you app.js file on line number 10 :
gender.push("gender " + data[i].jeniskelaminid);
you can set an if condition instead of it like
if(data[i].jeniskelaminid == 1){
gender.push("men");
} else if(data[i].jeniskelaminid == 2){
gender.push("women");
} else {
gender.push("other");
}
in there the chart name is defined, hope it will help your work.
Source: stackoverflow.com
Related Query
- how to group the chart
- How to add text inside the doughnut chart using Chart.js?
- How do you hide the title of a chart tooltip?
- How to add text in centre of the doughnut chart using Chart.js?
- chart js tooltip how to control the data that show
- Chart js. How to align text by the center of the tooltip?
- How do I change the 'months' language displayed on the date axis in Chart JS?
- How to align Chart.JS line chart labels to the center
- How to hide the y axis and x axis line and label in my bar chart for chart.js
- How can I remove extra whitespace from the bottom of a line chart in chart.js?
- How to display the labels in doughnut chart using ng2 charts?
- Chart js: how can I align the legend and the title
- PrimeNg bar chart how to show a label for the y-axis
- How can I display the xAxes and yAxes data in the tooltip, Chart JS?
- How can I trigger the hover mode from outside the chart with charts.js 2?
- How to start the line graph from the left Y axis in a line/bar mixed chart (Chart.js)?
- How to get the actual chart width and height in chart.js
- How to make bar chart animation where all bars grow at the same speed?
- How can I add some text in the middle of a half doughnut chart in Chart.JS?
- How to draw a needle on a custom donut chart and add datapoints to the needle?
- ChartJs - Pie Chart - how to remove labels that are on the pie chart
- In Stacked horizontal bar chart how to remove the vertical line in Chart.js?
- Angular chart how to show the legend data value by default along with legend name
- How to commaize the data values provided to a chart in Chart.JS?
- PrimeNg bar chart how do I hide the bar labels?
- How to create a chart that uses strings for both the X and Y axes?
- How to draw outer labels for polar chart using ng2-charts and chart.js at fixed positions outside the rings?
- Chart is too big. How can I reduce size for the chart in vue js?
- How to change the label and grid line position on a timeseries chart in Chart.js 3?
- How do I customize y-axis labels and randomly pick the value from the data range for x-axis in Chart js
More Query from same tag
- How to show multiple datasets in line chart js
- How to display value labels above graph bars using chart.js
- Live updating chart with data from database with Chart.js
- How do I increase the space between the Legend and the Chart when using angular-chart.js?
- Chart.js radar chart ticks are hidden behind the graph
- Angular 2+: How to load a data to chartjs graph in every second in Angular
- How to create a scatter plot where x-axis represents a day by hours with datetime object? chartJS
- ChartJS re-rendering bug
- Parse HTML input value to php over javascript file
- Line chart not rendering data
- chart.js 2.0 current mouse coordinates tooltip
- Chart.js not updating or receiving data from Flask python
- how to show several labels and data's in the chart.js similar to npmtrend website?
- integrate a scroll bar along with chartjs-zoom-plugin
- Resizing chart before downloading as image
- displaying the output on chart.js using Django and HTML
- Chart.JS: How can I only display data labels when the doughnut size is big enough for the text?
- Unable to draw method in Chart.js, v2 can't be found
- Having problems getting a line chart in Chartsjs to go *up* to 1, with bkg fill *under* the chart line
- Chart.Js : How to change the color of a point, based on a third data
- SAPUI5 using chart.js
- Trying to update data in chart.js chart
- Is it able to align line chart at left margin in mixed chart?
- ChartJS: two axes in horizontalBar chart
- Saving columns from an SQL table into an array using Python
- Querying data from Firebase for Chart.js using AngularJS
- chart.js zeroLineColor does not work as expected
- Datas put one on each other on chart.js
- chart.js - Add corporate design to chart
- Chart.js pie chart to display "No Data" if the datasets are empty