Victory-native: How can I add a line in bar graph?

Created on 21 May 2018  路  1Comment  路  Source: FormidableLabs/victory-native

I want to show an average in the bar graph as a straight line.
How can I do this in the bar graphs?

Below is what I am looking for.

sam

Most helpful comment

@AbhishekDS-Userfacet you can add a VictoryLine component with a constant y value like

<VictoryChart>
  <VictoryBar .../>
  <VictoryLine y={() => 150} />
</VictoryChart>

>All comments

@AbhishekDS-Userfacet you can add a VictoryLine component with a constant y value like

<VictoryChart>
  <VictoryBar .../>
  <VictoryLine y={() => 150} />
</VictoryChart>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

UtkarshPramodGupta picture UtkarshPramodGupta  路  5Comments

yvonne6344 picture yvonne6344  路  4Comments

aszheng picture aszheng  路  5Comments

safaiyeh picture safaiyeh  路  6Comments

ChrisGatzo picture ChrisGatzo  路  3Comments