Skip to content

Deno Chart v1.1.0

Latest
Compare
Choose a tag to compare
@Ciaxur Ciaxur released this 02 Sep 02:00

📦 Configuration Features

  • Added backgroundColor option with type RGBA
  • Added graphValuePrecision option to round Floating-Point values in the graph outline
interface GraphOptions {
  ...
  backgroundColor: RGBA,
  ...
  // Graph Values
  graphValuePrecision: number,
  ...
}

✨ Bar Entry Modifications

  • Relaced position entry with type Vector2D with val and label (Optional)
    • Label key by default is the iteration value of that entry. (Entry Index)
    • If the Label is a Number, it is rounded to the nearest graphValuePrecision value
interface BarEntry {
  val:      number,
  label?:   string,
  color:    string,
}

👾 Developer Features

  • Removed Vector2D
  • New RGBA Interface
interface RGBA {
  r: number,
  g: number,
  b: number,
  a: number,
}