Skip to content
#

chartjs

Here are 1,193 public repositories matching this topic...

pigobyte
pigobyte commented Apr 22, 2020

i have the chartjs-plugin-zoom.js file in my solution and just added two more function to the chart instance to zoom in and zoom out after the _WheelHandler function.

  chartInstance.ZoomIn = function () {
                        var rect = document.getElementById(chartInstance.canvas.id).getBoundingClientRect();

                        var center = {
         
Niconius
Niconius commented Jan 20, 2020

This will display text1,text2 in one line.
label: { content: ['text1', 'text2'], enabled: true, position: "top" }

I'm not sure if that is the wanted behaviour but the readme states:
// Text to display in label - default is null. Provide an array to display values on a new line

So the above code snip

pedall
pedall commented Dec 16, 2017

my package.json versions

"canvas": "2.0.0-alpha.8"
"chart.js": "^2.7.1",
"chartjs-node": "^1.6.0",


When using "canvas": "^2.0.0-alpha.2", node-chartjs works like a charm, when using "canvas": "^2.0.0-alpha.8", item is null in acquireContext so item.length errors in platform.dom.js

	acquireContext: function(item, config) {
		if (typeof item === 'string') {
			item = 

Improve this page

Add a description, image, and links to the chartjs topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the chartjs topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.