thekeenant / fcharts

:bar_chart: Create beautiful, responsive, animated charts using a simple and intuitive API.
https://pub.dartlang.org/packages/fcharts
MIT License
326 stars 46 forks source link

Add support for log scale or custom scales #5

Closed thekeenant closed 6 years ago

thekeenant commented 6 years ago

Currently only linear axes are supported. Perhaps some typedef which would map to a linear scale so it can be drawn like normal.

i.e. for semi-log: 10,000 -> 1.0 1,000 -> 0.75 100 -> 0.5 10 -> 0.25 0 -> 0

or for linear (the default): 10,000 -> 1.0 1,000 -> 0.1 100 -> 0.01 10 -> 0.001 0 -> 0

thekeenant commented 6 years ago

Added in 6fed7b1f489a7024da1145a92e217e81fcb9a6da