score:13
Accepted answer
to make the pie chart smaller, set responsive
property to false
in your chart options, like so ...
var options = {
...
responsive: false,
...
}
score:1
in var ctxptd = $("#mychart2").get(0).getcontext("2d");
, you could use a html dom element, not a jquery element, and set height only like:
var ctxptd = document.getelementbyid("mychart2");
ctxptd.height = 200;
hope it works.
Source: stackoverflow.com
Related Query
- Make pie chart smaller Chart JS
- Chart JS, ng2-Charts - How to make the label to the right of pie chart instead on top?
- How to make the chart smaller than its container
- How to make chartjs pie chart responsive
- How to group smaller Pie Chart slices together to Improve Readability in chartjs
- Make chartjs pie chart wiyh dynamic data
- how to make scrollable the legends of pie chart ( chart js )
- How do I make a pie chart showing number of people in an age group with JSON and ChartJS?
- Is it possible to make 3D pie chart using chart.js?
- How to make the size of pie chart fixed without using canvas (chart.js)
- How to make pie chart from array values?
- Chart.js Show labels on Pie chart
- Chart.js v2: How to make tooltips always appear on pie chart?
- Chartjs random colors for each part of pie chart with data dynamically from database
- Pie Chart Legend - Chart.js
- How can I make two of my lines in Chart JS thicker
- Can't make chart js responsive
- chart.js: Show labels outside pie chart
- How set color family to pie chart in chart.js
- chartjs datalabels change font and color of text displaying inside pie chart
- How can I make a stepline or stepped chart in chart.js or D3?
- Chart.js v2.6: Add arrows to pie chart output values
- Display values outside of pie chart in chartjs
- Chart.js ng2-charts colors in pie chart not showing
- Angular-chart.js - Make line chart does not curve
- Display Doughnut Pie Chart As Circle Progress Chart.js
- How to display data labels outside in pie chart with lines in ionic
- How to hide section in a Chart.js Pie Chart
- Thousand separator in pie chart of charts.js
- Chart.js: width and height of a pie chart not respected
More Query from same tag
- Ajax call to trigger a controller function
- chart.js line chart and "correct" spacing between points? (i.e. horizontal position based on percent of width, not fixed)
- Creating multiple charts based on dictionary length
- How to display "%" sign on mouse hover in Pie-Chart
- Chart.js changes selected legend filters when using update function
- How to add a horizontal line at a specific point in chart.js when hovering?
- Chart.js maxBarThickness is deprecated in angular 8
- Chart.js axes always show zero
- Chart.js how to modify an existing legend
- React js and chart js pie chart type
- Move tooltip further from data point for Chart.js?
- Vertical line using Chart.js annotations plugin with linear scale on x axis
- Chart, X and Y-Axis labels are blurred in horizontal bar chart using chart.js
- Chart.js doesn't animate on first load
- Chartjs + moment() not displaying on django
- How to display half hour ticks on x-axes
- End x-axis on last data point (scatter plot) for x,y numeric values
- Remove background on Chartjs v2 fixed tooltips
- 0 line style of Chart.js line chart
- ChartJs beforeDraw method not getting called in release build
- Chart js scatter - display label on hover
- Chartjs v2 stroke shadow
- Rotate left legend chartjs
- how to present on the Y axis, format hh: mm: ss Chart.js
- How to remove trial version watermark in canvasjs using Jquery (without license)
- Chart.js : How I change the x axes ticks labels alignment in any sizes?
- Updating ng-charts barchart datasets in angular 2
- Chart.js - Scale of secondary Y axis
- how to create bar chart with group and sam color for each group using chart.js?
- Reactive charts with Meteor : d3charts , Hightcharts , ChartJS , other?