S
S
Sergey2020-07-09 00:31:41
React
Sergey, 2020-07-09 00:31:41

How to change axis style in Victory?

Hello. Tell me, or help me find how to change the colors of the axes of the VictoryChart component of the Victory library. https://formidable.com/open-source/victory/docs/vi...
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2020-07-09
@Banjamin

Use the VictoryAxis component and style it :

<VictoryChart>
  <VictoryAxis
    style={{
      axis: {
        stroke: 'здесь ваш цвет',
      },
    }}
  />
</VictoryChart>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question