Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 687 Bytes

README.md

File metadata and controls

32 lines (21 loc) · 687 Bytes

chartjs-plugin-trendline

This plugin draws an linear trendline in your Chart. Made for Chart.js > 2.0

Configuration

To configure the trendline plugin you simply add a new config options to your dataset in your chart config.

{
	trendlineLinear: {
		style: "rgba(255,105,180, .8)",
		lineStyle: "dotted|solid",
		width: 2
	}
}

Supported chart types

  • bar
  • line

Contributing

Pull requests and issues are always welcome. For bugs and feature requests, please create an issue.

License

chartjs-plugin-trendline.js is available under the MIT license.