victory icon indicating copy to clipboard operation
victory copied to clipboard

gauge component

Open boygirl opened this issue 10 years ago • 3 comments

build a gauge component with the following features

screen shot 2016-05-23 at 2 09 24 pm

  • Gauges will be circular, but can be formed from any portion of a circle. Define startAngle and endAngle as in victory-pie
  • Gauges will be composed of segments, ticks, and tickLabels Re-use as much language from victory axis as possible in defining this api
  • Gauges can be rings or full circles (ie inner radius) re-use api from victory-pie
  • Support for a custom components (v2)
  • Sensible default needle component
  • needs to animate
  • follow the patterns established in the other victory components

props: animate, data, style, startAngle, endAngle, colorScale, innerRadius, outerRadius, padAngle, width, height, padding, tickValues, tickFormat, domain

v2 props: dataAccessor, events, tickComponent, needleComponent, tickLabelComponent, segmentComponent

This should end up looking quite similar to victory-pie. Here's a straight d3 example of a gauge component: http://bl.ocks.org/msqr/3202712

This feature should be created in a new repo victory-gauge. It would probably be easiest to start by cloning victory-pie

boygirl avatar May 23 '16 20:05 boygirl

This issue was moved to FormidableLabs/victory-gauge#1

boygirl avatar May 24 '16 17:05 boygirl

What format should data props be? A simple integer should work just fine, but are there any formats we should consider?

mdaxtman avatar May 24 '16 18:05 mdaxtman

@mdaxtman I'm moving this question to the corresponding issue in the newly created repo. Let's discuss there.

boygirl avatar May 24 '16 20:05 boygirl