Skip to content

Instantly share code, notes, and snippets.

@marshallmurphy
Created April 18, 2020 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marshallmurphy/33cd2036549bc7a02aaa940a80de2f3d to your computer and use it in GitHub Desktop.
Save marshallmurphy/33cd2036549bc7a02aaa940a80de2f3d to your computer and use it in GitHub Desktop.
{axisValues.days.map((item, index) => (
<Text
key={index}
fill="#fff"
x={this.getValuePosition(index, axisValues.days, width)}
y={0}
font={`12px Arial`}
alignment='center'
opacity={index === 6 ? 1: 0.6}
>
{item}
</Text>
))}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment