-
Notifications
You must be signed in to change notification settings - Fork 183
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
Axis ticks placement / tooltip issues #478
Comments
More examples from https://carbon-design-system.github.io/carbon-charts: |
Hello! We’d make the tooltip working continuously over the chart with a snap to the closer datapoints. It would work the same as it is right now, but it could be attached not to grid ticks but generally free to span on the whole chart. In addition to this, we would like to make the cursor line (blue dotted line in the image) on chart always visible, even if there are no datapoints highlighted. We know this would create an exception for this specific type of charts, so please consider this as a further improvement that would be great to discuss together Do you think this could work? PS please note that this design is a WIP by Accurat and has not been approved by the IBM design team yet |
I sent your proposed solution to the design team. At a glance though 2 issues still stand out to me:
|
Thanks @theiliad
|
|
|
Hello Anne, thanks for the feedback, you pointed out important aspects of this issue. 1 - We totally agree, the tooltip should probably be adapted to difference charts 3 - You are right, the black tooltip is quite bold, we were primarily thinking about functionalities and not style, at least at the moment. 4 - The tooltip has two values because there are two dots overlapped, we’d avoid displaying values of the lines, where we know it’s a graphical interpolation 5 - Following the original tooltip guidelines, that behaviour is given by the comparative tooltip 6 - Truncation should be probably applied in many areas, such as axis, legends and tooltips. I think this issue can be used to reference to this specific topic: -> Issue 347 |
I think it's a good idea to not assume an interpolation between data points by default and
We've added truncation to chart titles where you'd see truncated text and a tooltip onHover, however for tooltips and axis there are no specs on truncation. |
Hi! We designed a series of guidelines for each chart typology. You can find the sketch file with all the specs at this link and you’ll see a preview attached to this comment. A couple of notes:
Let us know! |
Looks great so far. Looking forward to get design to look at these |
Thanks Giovanni,
Here's my two cents:
Black x-axis tooltip/label:
I'm repeating myself, but I think the black axis label is too bold and distracting. Simply bolding the existing axis label would be a more subtle and probably just as effective. Some of your examples show concise abbreviated x-axis labels such as "Jan" 'Feb', but full length black axis tooltips such as 'Tuesday, 13 August 2020'. I have a couple of issues with this: (a) it makes the black axis tooltip even bigger and more distracting, (b) The 'Jan' 'Feb' axis labels come form the dataset. The full length name and year might not be in the data set. Even if they are, it is a lot of work for the system to go back into the data to determine the year and full day name just for a hover tooltip. I could see this affecting performance time. (c) What if Month was on the x-axis and there were 4 years of data? In that case, the data plotted for Jan actually represents Jan 2014, Jan 2015, Jan 2016 and Jan 2017 (i.e all the Januaries in the data set). What would the black tooltip read in that case? If it lists all four Januaries, it could get pretty long winded, not to mention big. If you do use the black axis tooltip, I would rather see the same content as the axis label, or an untruncated version of the axis label. Including totals in tooltips I like a lot Sometimes Average would be more relevant than Sum total. For example, the overlapping area chart. Stacked bar chart example: This is an example of where a Sum total would also be good. Summarization type I believe that summarization/aggregation type (Avg, Sum, Min, Max, Count, Mode, Count distinct) should be included in the tooltip, especially if the information is not included in the axis label. Tooltips on colour legend and axis labels Have you considered adding them. Increases the number of ways to read the chart inforamtion. Improves accessibility. For example:
Legend member tooltip with corresponding bar highlighting X-axis label tooltip with corresponding bar highlighting
Multi select If I select multiple points on, say a map or bubble chart, what happens? Will the tooltip show the data for all and put a total for all? Tableau maps does a nice job of this. Include both Measure name and value in tooltip Some of your examples do this well, such as: Others don't. For example, this bar chart shows only the value. It forces the reader's eyes to dart around to the y-axis to figure out what that value relates to. I would prefer to see it as such
-------------------------------------------------
| 2019 Q1 |
| Clicks unique (Sum) 31500. |-------------------------------------------------
7. Include more information in the tooltip, for accessibility
1. Treemap with 'Myanmar 2%' tooltip could be:
-----------------------------------------------------
| Asia > Myanmar |
| Visitors by country (Avg) 2% |
-----------------------------------------------------
2. With both size and heat scale, it could scale as so:
-----------------------------------------------------
| Asia > Myanmar |
| Visitors by country (Avg) 2% |
| Change with PY (Avg) 29% |
-----------------------------------------------------
8. Alluvial chart
1. Did you consider putting left and right axis labels outside the chart rather than inside? They could be handled like typical y-axis labels and would reduce covering up the bands in the chart.
9. Scatter and bubble charts
1. Typically these have continuous measures on both axes. Your example has categorical on x-axis (month or day). For the typical case, it would be nice to hover over a point and get two blue dotted reference lines, one pointing to value on x-axis and the other to the value on the y-axis.
Hope the feedback is useful,
Anne Stevens__
Data visualization strategy
User experience design
IBM Cognos Analytics | IBM Data and AI
----- Original message -----From: Eliad Moosavi <[email protected]>To: carbon-design-system/carbon-charts <[email protected]>Cc: anne-stevens <[email protected]>, Comment <[email protected]>Subject: [EXTERNAL] Re: [carbon-design-system/carbon-charts] Axis ticks placement / tooltip issues (#478)Date: Tue, Feb 11, 2020 11:24 AM
Looks great so far. Looking forward to get design to look at these
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.
|
Thanks Anne, a few explanations:
The comparative tooltip (continuous) is the overall approach, in case of values on ticks it could work exactly as you suggest, it will just need a little exception. We totally agree that the black is really bold, this should be considered as a structural guide
This is a specific case that works when user upload data, we would like to set up overall rules that could give a guidance on a higher level. The charts’ code will handle longer and shorter date formats, starting from this, each following case and application will need to be considered independently (tools, editorial print,…).
If I got the point, this could be a line chart with 4 lines (one per each year) or a stacked chart. In both case the black tooltip should say just “January” and single elements should say “2014”, or “2015”, once hovered
Totally agree! Additional indicators are super important, within the tooltip there could be any of these it just needed to the specified within the code, when designing the chart application. Including all of the indicators could be too much, even if, in the future, we might consider building an additional tooltip version that could be a more exhaustive version of this one, with room for more than one indicator.
If I got this correctly, this behaviour would happen with the comparative tooltip as well, hovering directly on the chart. It could be interesting to have an interaction on axis labels, I’m afraid that it would be a bit too much if we have the comparative tooltip working as well.
We would disable comparative tooltips for bubble charts and scatterplot, since it depend on the cursor coordinates, it might include too many datapoint or elements, resulting in a really confusing tooltips.
We’d suggest to have a generic tooltip rule that works in most of the cases, but for sure it would be interesting to build up different cases and exceptions that could cover all of the needs.
This would be interesting to see, we’d need a good truncating function for labels but we are totally open to this
We tried that and we thought it could be to messy (please consider that we’d have only the tooltip on single elements for these charts), but we had both version (see attached image). I’d love to know what do you think about these |
@gvnmagni in the descriptive tooltip example, what if the user hasn't provided a title for the y-axis? |
Thanks for the reply, Giovanni. I don't know if you could tell on wednesday's call, but the audio quality was poor and I only got the gist of what you were saying. I appreciate the detail below.
Comments added inline in blue
Anne Stevens__
Data visualization strategy
User experience design
IBM Cognos Analytics | IBM Data and AI
----- Original message -----From: Giovanni Magni <[email protected]>To: carbon-design-system/carbon-charts <[email protected]>Cc: anne-stevens <[email protected]>, Comment <[email protected]>Subject: [EXTERNAL] Re: [carbon-design-system/carbon-charts] Axis ticks placement / tooltip issues (#478)Date: Thu, Feb 13, 2020 4:54 AM
Thanks Anne, a few explanations:
Black x-axis tooltip/label:
The comparative tooltip (continuous) is the overall approach, in case of values on ticks it could work exactly as you suggest, it will just need a little exception. We totally agree that the black is really bold, this should be considered as a structural guide
(b) The ‘Jan’ ‘Feb’ axis labels come from the dataset. The full length name and year might not be in the data set. Even if they are, it is a lot of work for the system to go back into the data to determine the year and full day name just for a hover tooltip. I could see this affecting performance time.
This is a specific case that works when user upload data, we would like to set up overall rules that could give a guidance on a higher level. The charts’ code will handle longer and shorter date formats, starting from this, each following case and application will need to be considered independently (tools, editorial print,…). Your call. I don't like the idea of even bigger black axis tooltips, if that is what would result.
(c) What if Month was on the x-axis and there were 4 years of data? In that case, the data plotted for Jan actually represents Jan 2014, Jan 2015, Jan 2016 and Jan 2017 (i.e all the Januaries in the data set). What would the black tooltip read in that case? If it lists all four Januaries, it could get pretty long winded, not to mention big..
If I got the point, this could be a line chart with 4 lines (one per each year) or a stacked chart. In both case the black tooltip should say just “January” and single elements should say “2014”, or “2015”, once hovered. What I had in mind was this very common use case: a single line chart with 3 years of data:
As you can see on the left, there are 3 years of data (2014, 2015, 2016) and each year has 12 months. The line chart only has one line because it represents the sum total ridership for 3 Januaries, 3 Febs, 3 Marches etc. I could show this live if you wanted. Trust me, I tested the behaviour. It is pretty standard. So my question was, what would the axis tooltip say in this case? Would it have to say 'Jan 2014, Jan 2015, Jan 2016'? If so, that would get wordy. It's a scale issue.
Including totals in tooltips.
Totally agree! Additional indicators are super important, within the tooltip there could be any of these it just needed to the specified within the code, when designing the chart application. Including all of the indicators could be too much, even if, in the future, we might consider building an additional tooltip version that could be a more exhaustive version of this one, with room for more than one indicator. IMO aggregation/summarization method must be included on the axis labels at least. Without it, it really is not possible to interpret the chart. For example average ridership per month in the example above is very different from sum total ridership per month. Could be in the tooltip too.
Tooltips on colour legend and axis labels
If I got this correctly, this behaviour would happen with the comparative tooltip as well, hovering directly on the chart. It could be interesting to have an interaction on axis labels, I’m afraid that it would be a bit too much if we have the comparative tooltip working as well.
Multi SelectIf I select multiple points on, say a map or bubble chart, what happens? Will the tooltip show the data for all and put a total for all? Tableau maps does a nice job of this.
We would disable comparative tooltips for bubble charts and scatterplot, since it depend on the cursor coordinates, it might include too many datapoint or elements, resulting in a really confusing tooltips.Given the complexity of maps, we’d prefer to work on their tooltips once they are developed, it will depends a lot on the choices made on the design side.
Include both Measure name and value in tooltip————————————————————————| 2019 Q1 || Clicks unique (Sum) 31500. |————————————————————————
We’d suggest to have a generic tooltip rule that works in most of the cases, but for sure it would be interesting to build up different cases and exceptions that could cover all of the needs. Up to you. IMO I think this is the most generic and scalable approach.
Alluvial chart / Did you consider putting left and right axis labels outside the chart rather than inside? They could be handled like typical y-axis labels and would reduce covering up the bands in the chart.
This would be interesting to see, we’d need a good truncating function for labels but we are totally open to this. Agree about the truncation. Truncation needs to be addressed generally.
Scatter and bubble chartsTypically these have continuous measures on both axes. Your example has categorical on x-axis (month or day). For the typical case, it would be nice to hover over a point and get two blue dotted reference lines, one pointing to value on x-axis and the other to the value on the y-axis.
We tried that and we thought it could be to messy (please consider that we’d have only the tooltip on single elements for these charts), but we had both version (see attached image). I’d love to know what do you think about these
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.
|
@anne-stevens can't see any blue text in your comments |
That's weird. I'm attaching screen grabs.
___
…___
___
___
Anne Stevens__
Data visualization strategy
User experience design
IBM Cognos Analytics | IBM Data and AI
----- Original message -----From: Eliad Moosavi <[email protected]>To: carbon-design-system/carbon-charts <[email protected]>Cc: anne-stevens <[email protected]>, Mention <[email protected]>Subject: [EXTERNAL] Re: [carbon-design-system/carbon-charts] Axis ticks placement / tooltip issues (#478)Date: Thu, Feb 13, 2020 5:43 PM
@anne-stevens can't see any blue text in your comments
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.
|
This issue is highly visible in the area chart demos:
https://deploy-preview-412--carbon-charts-core.netlify.com
However it also exists in any chart that supports continuous scales.
Description:
Possible solutions:
Looking for options here
The text was updated successfully, but these errors were encountered: