1.3.1 • Published 5 years ago

chartist-logaxis v1.3.1

Weekly downloads
18
License
MIT
Repository
github
Last release
5 years ago

chartist-logaxis

Monkey patches Chartist.AutoScaleAxis to support logarithmic scaling. Example usage:

npm i chartist chartist-logaxis
import 'chartist'
import 'chartist-logaxis'

var chart = new Chartist.Line('#mychart',
{
    series: [[{ x: 1, y: 1 }, { x: 2, y: 100 }, { x: 3, y: 1000 }]]
},
{
    classNames: {
        gridMinor: 'ct-grid-minor'
    },
    axisY: {
        showMinorGrid: true,
        type: Chartist.AutoScaleAxis,
        scale: 'log10',
    },
    axisX: {
        showMinorGrid: 4,
        type: Chartist.AutoScaleAxis,
    }
});
.ct-grid {
    stroke-dasharray: none;
}
.ct-grid-minor {
    stroke-dasharray: 2px;
}
1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago