mermaid-js / mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown

Home Page:https://mermaid.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

log scale for `xychart-beta`

migueltorrescosta opened this issue · comments

Proposal

Have a string field scale that

  • defaults to linear
  • accepts log as an option
  • Can be extended to other scales in the future

This would allow us to version control a graph description with true ( non-logged ) values, while plotting the logged values.

Example

xychart-beta
    title "Sales Revenue"
    scale log
    x-axis [jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec]
    y-axis "Revenue (in $)" 4000 --> 11000
    bar [5000, 6000, 7500, 8200, 9500, 10500, 11000, 10200, 9200, 8500, 7000, 6000]
    line [5000, 6000, 7500, 8200, 9500, 10500, 11000, 10200, 9200, 8500, 7000, 6000]

Screenshots

No response