Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

legend bug #428

Closed
wadjih-bencheikh18 opened this issue Jul 18, 2022 · 0 comments · Fixed by #429
Closed

legend bug #428

wadjih-bencheikh18 opened this issue Jul 18, 2022 · 0 comments · Fixed by #429

Comments

@wadjih-bencheikh18
Copy link
Contributor

wadjih-bencheikh18 commented Jul 18, 2022

when using function series under bar series the legend of this latter does not appear

 <Plot {...DEFAULT_PLOT_CONFIG}>
      <Legend {...props} labelStyle={{ cursor: 'hand' }} />
      <BarSeries
        data={data2}
        lineStyle={{
          stroke: 'green',
        }}
        label="Label Bar series"
      />
      <FunctionSeries
        getY={(x) => 5 * Math.sin(x) + 10}
        lineStyle={{
          stroke: 'brown',
        }}
        label="Label Function series"
      />
    </Plot>

image

but if we reverse it works correctly

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant