-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick majority of react-charting fixes from v7 (#16667)
* Callout ordering and line opacity (#15814) Co-authored-by: v-sivsar <[email protected]> * Charting updates and fixes (#15816) - When `hideLegend` is true, no space is reserved for the legend - turn on `strictBindCallApply` compiler option and fix resulting errors - For VerticalStackedBarChart, support turning off hover action on legends - VerticalStackedBarChart: add minimum bar height option - VerticalStackedBarChart: add `onBarClick` callback option - VerticalStackedBarChart: simplify how data is passed to callbacks - VerticalStackedBarChart: don't output empty stack `<g>` - VerticalStackedBarChart: disallow `yMinValue` since setting it breaks the scale of the chart * fix bug with hovering line; make field name more descriptive * consolidate common code between focus and hover handlers * update legend examples to include onMouseOutAction Co-authored-by: Michael Best <[email protected]> * User/v sivsar/fix heat map bug (#15851) * fix for exception thrown when the data of the first category is empty Co-authored-by: v-sivsar <[email protected]> * Charting: Minor edits to Cartesian charts regarding x axis tick values tooltip (#15993) * vertical bar cahrt * changes to area chart and line chart * added previous PR changes to 7.0 Co-authored-by: Jameela Kowsar Shaik (Zen3 Infosolutions America Inc) <[email protected]> * fixing the color for y-axis line in dark mode (#15907) * changing fill to stroke, because it is a line Co-authored-by: v-sivsar <[email protected]> * Charting: Legends background color updated in HC mode. (#16067) * HC mode for legends Co-authored-by: Jameela Kowsar Shaik (Zen3 Infosolutions America Inc) <[email protected]>
- Loading branch information
Jakub Konka
and
Jameela Kowsar Shaik (Zen3 Infosolutions America Inc)
authored
Jan 27, 2021
1 parent
16f45ce
commit 9d3693f
Showing
39 changed files
with
1,577 additions
and
698 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
change/@fluentui-react-charting-2021-01-27-18-48-07-cherry-15814.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"type": "prerelease", | ||
"comment": "Cherry-pick react-charting updates from v7", | ||
"packageName": "@fluentui/react-charting", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch", | ||
"date": "2021-01-27T17:48:07.693Z" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 14 additions & 1 deletion
15
packages/react-charting/src/components/AreaChart/AreaChart.styles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,18 @@ | ||
import { IAreaChartStyleProps, IAreaChartStyles } from './AreaChart.types'; | ||
|
||
export const getStyles = (props: IAreaChartStyleProps): IAreaChartStyles => { | ||
return {}; | ||
return { | ||
tooltip: { | ||
...props.theme!.fonts.medium, | ||
display: 'flex', | ||
flexDirection: 'column', | ||
padding: '8px', | ||
position: 'absolute', | ||
textAlign: 'center', | ||
top: '0px', | ||
background: props.theme!.semanticColors.bodyBackground, | ||
borderRadius: '2px', | ||
pointerEvents: 'none', | ||
}, | ||
}; | ||
}; |
Oops, something went wrong.