Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Missing tooltip for multi-group series charts #186

Closed
2 tasks done
markov00 opened this issue Apr 23, 2019 · 1 comment · Fixed by #187
Closed
2 tasks done

Missing tooltip for multi-group series charts #186

markov00 opened this issue Apr 23, 2019 · 1 comment · Fixed by #187
Assignees
Labels
bug Something isn't working released Issue released publicly

Comments

@markov00
Copy link
Member

Describe the bug
When creating a multiaxis, multi group chart, the tooltip doesn't display the values for all the available series.

To Reproduce
Steps to reproduce the behavior:
Create a chart with two line series with two different groups:

<Chart className={'story-chart'}>
        <Settings showLegend={false} />
        <Axis id={getAxisId('bottom')} position={Position.Bottom} title={'Bottom axis'} showOverlappingTicks={true} />
        <Axis
          id={getAxisId('left')}
          groupId={getGroupId('group1')}
          title={'Line 1'}
          position={Position.Left}
          tickFormat={d => `${Number(d).toFixed(2)} %`}
        />
        <Axis
          id={getAxisId('right')}
          title={'Line 2'}
          groupId={getGroupId('group2')}
          position={Position.Right}
          tickFormat={d => `${Number(d).toFixed(2)}/s`}
        />
        <LineSeries
          id={getSpecId('line1')}
          groupId={getGroupId('group1')}
          xScaleType={ScaleType.Linear}
          yScaleType={ScaleType.Linear}
          xAccessor="x"
          yAccessors={['y']}
          stackAccessors={['x']}
          splitSeriesAccessors={['g']}
          data={[{ x: 0, y: 5 }, { x: 1, y: 4 }, { x: 2, y: 3 }, { x: 3, y: 2 }]}
        />
        <LineSeries
          id={getSpecId('line2')}
          groupId={getGroupId('group2')}
          xScaleType={ScaleType.Linear}
          yScaleType={ScaleType.Linear}
          xAccessor="x"
          yAccessors={['y']}
          stackAccessors={['x']}
          splitSeriesAccessors={['g']}
          data={[{ x: 0, y: 2 }, { x: 1, y: 3 }, { x: 2, y: 4 }, { x: 3, y: 5 }]}
        />
      </Chart>

mouseover the chart and the tooltip will only display the line2 value.

Expected behavior
The tooltip should show either line1 and line2 values.

Screenshots
Screenshot 2019-04-23 at 17 41 10

Version (please complete the following information):

  • Elastic Charts: master

Additional context
n/a

Errors in browser console
n/a

Kibana Cross Issues
n/a

Checklist

  • every related Kibana issue is listed under Kibana Cross Issues list
  • kibana cross issue tag is associated to the issue if any kibana cross issue is present
@markov00 markov00 added the bug Something isn't working label Apr 23, 2019
@markov00 markov00 self-assigned this Apr 23, 2019
@markov00 markov00 added this to the Kibana 7.1 milestone Apr 23, 2019
markov00 added a commit to markov00/elastic-charts that referenced this issue Apr 23, 2019
This fix correct the wrong behaviour when indexed geometries are not merged on multiple series.
Previously we just rewrote the entire stacked and non stacked map. Now, for each stacked/nonstacked
series we are merging that indexed geometry map.

fix elastic#186
markov00 added a commit that referenced this issue Apr 24, 2019
This fix correct the wrong behaviour when indexed geometries are not merged on multiple series.
Previously we just rewrote the entire stacked and non stacked map. Now, for each stacked/nonstacked
series we are merging that indexed geometry map.

fix #186
markov00 pushed a commit that referenced this issue Apr 24, 2019
## [3.11.3](v3.11.2...v3.11.3) (2019-04-24)

### Bug Fixes

* merge multi-group indexed geometry ([#187](#187)) ([8047c29](8047c29)), closes [#186](#186)
@markov00
Copy link
Member Author

🎉 This issue has been resolved in version 3.11.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Apr 24, 2019
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this issue Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released Issue released publicly
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant