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

Support for faceted charts (small multiples) #500

Closed
1 task done
wylieconlon opened this issue Dec 19, 2019 · 3 comments
Closed
1 task done

Support for faceted charts (small multiples) #500

wylieconlon opened this issue Dec 19, 2019 · 3 comments
Assignees
Labels
:data Data/series/scales related issue enhancement New feature or request released Issue released publicly

Comments

@wylieconlon
Copy link

Faceting is particularly useful when displaying more than 3 dimensions of data in the same space. I have looked into doing faceting by creating multiple instances of <Chart>, but there are coordination issues when doing so. In particular:

  1. The legend renders a different width for each chart
  2. The user needs to manually calculate the domain of the data to render consistent Y values
  3. Color-coding that is normally automatic now needs to be manual
  4. Coordination is needed to highlight the same X axis across each chart

So I'd like to request that there is basic support for faceting in the chart library. I'm not sure whether this is possible, but I imagine there might be an API that specifies the facet dimension for a particular series of data. This API is mirroring how Vega-lite does it:

<Chart>
  <BarSeries data={} xAccessor={'Date'} facet={'Source'} />
</Chart>

Given a dataset with 4 columns, such as this one, I would want to render 3 rows of charts, each one showing the Date on the X axis and multiple series on the Y axis.

Source	Dest	Date		Sum
CN	IN	12/4/2019	48184
CN	IN	12/5/2019	269911
CN	IN	12/6/2019	600431
CN	CN	12/5/2019	163901
CN	CN	12/6/2019	404610
CN	CN	12/7/2019	16999
CN	US	12/5/2019	259137
CN	US	12/6/2019	151745
IN	CN	12/4/2019	31050
IN	CN	12/5/2019	440471
IN	CN	12/6/2019	451644
IN	CN	12/7/2019	59461
IN	IN	12/5/2019	336784
IN	IN	12/6/2019	337537
IN	US	12/4/2019	23734
IN	US	12/5/2019	139371
IN	US	12/6/2019	58982
IN	US	12/7/2019	60394
US	IN	12/5/2019	186557
US	IN	12/6/2019	319096
US	IN	12/7/2019	3961
US	CN	12/5/2019	96956
US	CN	12/6/2019	171835
US	ID	12/5/2019	171537
US	ID	12/6/2019	20488

Kibana Cross Issues
There is not an issue for this yet.

Checklist

  • this request is checked against already exist requests
  • [ ] 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
@wylieconlon wylieconlon added the enhancement New feature or request label Dec 19, 2019
@markov00 markov00 mentioned this issue Dec 20, 2019
93 tasks
@nickofthyme
Copy link
Collaborator

Interesting split chart from financial times.

image

@markov00 markov00 added the :data Data/series/scales related issue label Mar 26, 2020
@wylieconlon wylieconlon changed the title Support for faceted charts Support for faceted charts (small multiples) Mar 27, 2020
@markov00
Copy link
Member

markov00 commented May 26, 2020

linking design discussion topic on small multiples: #682

@markov00 markov00 modified the milestones: Kibana 7.10, Kibana 7.11 Oct 22, 2020
markov00 pushed a commit that referenced this issue Nov 24, 2020
# [24.1.0](v24.0.0...v24.1.0) (2020-11-24)

### Bug Fixes

* **area_charts:** correctly represent baseline with negative data points ([#896](#896)) ([d1243f1](d1243f1))
* **legend:** legend sizes with ordinal data ([#867](#867)) ([7559e0d](7559e0d)), closes [#811](#811)
* render orphan data points on lines and areas ([#900](#900)) ([0be282b](0be282b)), closes [#783](#783)
* specs swaps correctly reflected in state ([#901](#901)) ([7fba882](7fba882))

### Features

* **legend:** allow legend text to be copyable ([#877](#877)) ([9cd3459](9cd3459)), closes [#710](#710)
* allow clearing series colors from memory ([#899](#899)) ([ab1af38](ab1af38))
* merge series domain with the domain of another group ([#912](#912)) ([325b013](325b013))
* small multiples for XY charts (alpha) ([#793](#793)) ([d288208](d288208)), closes [#500](#500) [#500](#500)
@markov00
Copy link
Member

🎉 This issue has been resolved in version 24.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Nov 24, 2020
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this issue Feb 10, 2022
# [24.1.0](elastic/elastic-charts@v24.0.0...v24.1.0) (2020-11-24)

### Bug Fixes

* **area_charts:** correctly represent baseline with negative data points ([opensearch-project#896](elastic/elastic-charts#896)) ([b622fda](elastic/elastic-charts@b622fda))
* **legend:** legend sizes with ordinal data ([opensearch-project#867](elastic/elastic-charts#867)) ([74bcbad](elastic/elastic-charts@74bcbad)), closes [opensearch-project#811](elastic/elastic-charts#811)
* render orphan data points on lines and areas ([opensearch-project#900](elastic/elastic-charts#900)) ([3e2c739](elastic/elastic-charts@3e2c739)), closes [opensearch-project#783](elastic/elastic-charts#783)
* specs swaps correctly reflected in state ([opensearch-project#901](elastic/elastic-charts#901)) ([a94347f](elastic/elastic-charts@a94347f))

### Features

* **legend:** allow legend text to be copyable ([opensearch-project#877](elastic/elastic-charts#877)) ([21a96d3](elastic/elastic-charts@21a96d3)), closes [opensearch-project#710](elastic/elastic-charts#710)
* allow clearing series colors from memory ([opensearch-project#899](elastic/elastic-charts#899)) ([e97f4ab](elastic/elastic-charts@e97f4ab))
* merge series domain with the domain of another group ([opensearch-project#912](elastic/elastic-charts#912)) ([716ad5a](elastic/elastic-charts@716ad5a))
* small multiples for XY charts (alpha) ([opensearch-project#793](elastic/elastic-charts#793)) ([3b88e1c](elastic/elastic-charts@3b88e1c)), closes [opensearch-project#500](elastic/elastic-charts#500) [opensearch-project#500](elastic/elastic-charts#500)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:data Data/series/scales related issue enhancement New feature or request released Issue released publicly
Projects
None yet
Development

No branches or pull requests

4 participants