Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi Point Charts #795

Open
ValeryKuz opened this issue May 14, 2020 · 5 comments
Open

Multi Point Charts #795

ValeryKuz opened this issue May 14, 2020 · 5 comments

Comments

@ValeryKuz
Copy link

is it possible to do something like this?
https://canvasjs.com/javascript-charts/multi-series-scatter-point-chart/

or make a chart of dots and color negative values different color?

@pierresh
Copy link

Yes, you can do a line chart with the option lineWidth set to 0.

@ValeryKuz
Copy link
Author

Yes, you can do a line chart with the option lineWidth set to 0.

but i want two different colors as the sample has

@pierresh
Copy link

You can do two series (or more), each series would have its own color.

@ValeryKuz
Copy link
Author

You can do two series (or more), each series would have its own color.

is there any sample? how do i create two series? tnx

@pierresh
Copy link

you can try with this

Morris.Line({
	element: 'chart_line',
	lineWidth: 0,
	data: [
		{ year: '1958', nb: 90, e: null },
		{ year: '1962', nb: null, e: 2 },
		{ year: '1970', nb: 20, e: 4 },
		{ year: '1994', nb: 10, e: null },
		{ year: '2002', nb: 10, e: 20 },
	],
	xkey: 'year',
	ykeys: ['nb', 'e'],
	labels: ['nb', 'e']
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants