gg/chart

Types

pub type Chart {
  Chart(width: Float, height: Float, shapes: List(shape.Shape))
}

Constructors

  • Chart(width: Float, height: Float, shapes: List(shape.Shape))

Values

pub fn add_rect(
  chart: Chart,
  x: Float,
  y: Float,
  width: Float,
  height: Float,
  color: color.Color,
) -> Chart
pub fn create(
  width: Float,
  height: Float,
  shapes: List(shape.Shape),
) -> Chart
✨ Search Document