Skip to content

Chart improvements #183

@techniq

Description

@techniq
  • Chart
    • baseline support
      • Value guaranteed to be visible in domain (x/y). Useful with optional negative values since xDomain={[0, null]} would ignore negative values
    • TransformContext integration
    • GeoContext integration
    • TooltipContext integration
    • Add chartContext() with better types
    • Add radial at Chart context level instead of individual components (see RadialLine examples)
    • Better group/stack integration
    • Dedicated cScale color scale instead of using rScale (which is also useful for radius, etc)
      • Integrate with <Legend>
    • Bounds integration
      • Modify xScale/yScale along with using motionScale with tweening
      • Useful with Brush (integration)
    • Improved accessor (using LayerChart's accessor)
    • Improved types
    • Simplify Chart/LayerCake/ChartContext which enables accessing LayerCake context and calculated values (width/height, scales, etc) and improves types (chartContext())
<Chart>
  <LayerCake>
    <ChartContext>
      <slot />
    </ChartContext>
  </LayerCake>
</Chart>

Layout components

  • Canvas
    • Full width/height of container (like Svg) (commit)
    • scaleCanvas() integration
    • TransformContext integration
    • class support
  • Svg
    • TransformContext integration
    • class support
  • Html
    • class support

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions