Chart module for MagicMirror². This is a simple wrapper for Chart.js
In your terminal, go to your MagicMirror's Module folder:
cd ~/MagicMirror/modules
Clone this repository:
git clone [email protected]:MarinescuEvghenii/MMM-Chart.git
Install dependencies:
cd ~/MagicMirror/modules/MMM-Chart
npm install
Configure the module in your config.js
file.
To use this module, add it to the modules array in the config/config.js
file:
modules: [
{
module: 'MMM-Chart',
config: {
// See 'Configuration options' for more information.
}
}
]
The following property can be configured:
Option | Description | Default value |
---|---|---|
width | Chart width in px. | 200 |
height | Chart height in px. | 200 |
chartConfig | Chart.js config. More info at chartjs.org | {} |