# Table of Contents

# Plot

Graphs plots from the pre module.

Import it with:

       const plots = require('@epispot/epijs').plots

# plot

Plots a output of a model from the pre module.

# Parameters

    {
     title: {
         display: true,
         text: "Total Cases"
     },
     scales: {
         yAxes: [{
             ticks: {
                 beginAtZero: true
             }
         }]
     }
    }

# Examples

let sirout1 = sir(4, 9999, 1000, 100, 1/21, 10999, true)

plot(sirout1, "canvas-pre1", 100) // Plots data for 100 days onto the canvas-pre1 chart, with the data from the SIR model.

Returns any Returns the chart.js chart, if needed for modification.

# manipulate

Manipulate the chart.js graph

# Parameters

# Examples

let sirout1 = sir(4, 9999, 1000, 100, 1/21, 10999, true)

let sirplot = plot(sirout1, "canvas-pre1", 100)

sirplot.manipulate(sirplot, "fill", true) // Set fill to true

Returns any The chart.js graph