-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[Test change] [Not to merge] Change to enable charts on docsite as PR demosite is not working #33407
Draft
AtishayMsft
wants to merge
5
commits into
master
Choose a base branch
from
charting/declarativeChartDocsite
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,175
−1,110
Draft
[Test change] [Not to merge] Change to enable charts on docsite as PR demosite is not working #33407
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
8783770
Change to enable charts on docsite
AtishayMsft 9e94b75
Fix formatting
AtishayMsft ff9ded8
Update documentation for schema
AtishayMsft ddbb735
Merge branch 'master' into charting/declarativeChartDocsite
AtishayMsft 20a2c83
Merge upstream changes
AtishayMsft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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 | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -108,6 +108,7 @@ module.exports = { | ||||||||||||||||
'MultiStackedBarChart', | |||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🕵🏾♀️ visual regressions to review in the fluentuiv9 Visual Regression ReportAvatar Converged 2 screenshots
Drawer 1 screenshots
|
|||||||||||||||||
'TreeChart', | |||||||||||||||||
'VerticalStackedBarChart', | |||||||||||||||||
'DeclarativeChart', | |||||||||||||||||
], | |||||||||||||||||
}, | |||||||||||||||||
}; |
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
11 changes: 11 additions & 0 deletions
11
apps/public-docsite-resources/src/components/pages/Charting/DeclarativeChartPage.tsx
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,11 @@ | ||
import * as React from 'react'; | ||
import { DemoPage } from '../../DemoPage'; | ||
|
||
import { DeclarativeChartPageProps } from '@fluentui/react-examples/lib/react-charting/DeclarativeChart/DeclarativeChart.doc'; | ||
|
||
export const DeclarativeChartPage = (props: { isHeaderVisible: boolean }) => ( | ||
<DemoPage | ||
jsonDocs={require('../../../../dist/api/react-charting/DeclarativeChart.page.json')} | ||
{...{ ...DeclarativeChartPageProps, ...props }} | ||
/> | ||
); |
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
8 changes: 8 additions & 0 deletions
8
apps/public-docsite/src/pages/Controls/DeclarativeChartPage/DeclarativeChartPage.doc.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { TFabricPlatformPageProps } from '../../../interfaces/Platforms'; | ||
import { DeclarativeChartPageProps as ExternalProps } from '@fluentui/react-examples/lib/react-charting/DeclarativeChart/DeclarativeChart.doc'; | ||
|
||
export const DeclarativeChartPageProps: TFabricPlatformPageProps = { | ||
web: { | ||
...(ExternalProps as any), | ||
}, | ||
}; |
8 changes: 8 additions & 0 deletions
8
apps/public-docsite/src/pages/Controls/DeclarativeChartPage/DeclarativeChartPage.tsx
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 @@ | ||
import * as React from 'react'; | ||
import { ControlsAreaPage, IControlsPageProps } from '../ControlsAreaPage'; | ||
import { DeclarativeChartPageProps } from './DeclarativeChartPage.doc'; | ||
|
||
export const DeclarativeChartPage: React.FunctionComponent<IControlsPageProps> = props => { | ||
const { platform } = props; | ||
return <ControlsAreaPage {...props} {...DeclarativeChartPageProps[platform!]} />; | ||
}; |
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
104 changes: 0 additions & 104 deletions
104
packages/react-examples/src/react-charting/DeclarativeChart/schema/fluent_area.json
This file was deleted.
Oops, something went wrong.
105 changes: 105 additions & 0 deletions
105
packages/react-examples/src/react-charting/DeclarativeChart/schema/fluent_area.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 |
---|---|---|
@@ -0,0 +1,105 @@ | ||
/* eslint-disable @typescript-eslint/naming-convention */ | ||
export const areaSchema = { | ||
visualizer: 'plotly', | ||
data: [ | ||
{ | ||
fill: 'tonexty', | ||
line: { | ||
color: 'rgba(255, 153, 51, 1.0)', | ||
width: '1.3', | ||
}, | ||
mode: 'lines', | ||
name: 'a', | ||
type: 'scatter', | ||
x: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], | ||
y: [ | ||
0.17048910089864067, 0.05390702725063046, 0.7560889217240573, 0.7393313216390578, 0.7562979443674754, | ||
0.983908108492343, 0.4552096139092071, 0.751939393026647, 0.42441695150031034, 0.6119820237450841, | ||
], | ||
fillcolor: 'rgba(255, 153, 51, 0.3)', | ||
}, | ||
{ | ||
fill: 'tonexty', | ||
line: { | ||
color: 'rgba(55, 128, 191, 1.0)', | ||
width: '1.3', | ||
}, | ||
mode: 'lines', | ||
name: 'b', | ||
type: 'scatter', | ||
x: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], | ||
y: [ | ||
1.0921498980687505, 0.628379692444796, 1.6804387333467445, 1.1741874271317159, 1.7098535938519392, | ||
1.0165440369832146, 0.8201578488720772, 1.019179653143562, 0.5391840333768539, 0.9023036941696878, | ||
], | ||
fillcolor: 'rgba(55, 128, 191, 0.3)', | ||
}, | ||
{ | ||
fill: 'tonexty', | ||
line: { | ||
color: 'rgba(50, 171, 96, 1.0)', | ||
width: '1.3', | ||
}, | ||
mode: 'lines', | ||
name: 'c', | ||
type: 'scatter', | ||
x: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], | ||
y: [ | ||
1.5084498776097979, 1.0993096327196032, 2.5468884763826125, 1.3139261978658, 1.7288516603693358, | ||
1.3500413551768342, 1.4111774146124456, 1.1245312639069405, 1.4068617318281056, 0.9236499701488171, | ||
], | ||
fillcolor: 'rgba(50, 171, 96, 0.3)', | ||
}, | ||
{ | ||
fill: 'tonexty', | ||
line: { | ||
color: 'rgba(128, 0, 128, 1.0)', | ||
width: '1.3', | ||
}, | ||
mode: 'lines', | ||
name: 'd', | ||
type: 'scatter', | ||
x: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], | ||
y: [ | ||
1.912915766078795, 1.6450103381519354, 3.523866933241722, 1.656799203492564, 2.666064160881149, | ||
2.2985767814076814, 1.6491300653173326, 1.2880873970749964, 2.192375146193222, 1.6271909616796654, | ||
], | ||
fillcolor: 'rgba(128, 0, 128, 0.3)', | ||
}, | ||
], | ||
layout: { | ||
legend: { | ||
font: { | ||
color: '#4D5663', | ||
}, | ||
bgcolor: '#F5F6F9', | ||
}, | ||
xaxis1: { | ||
title: '', | ||
tickfont: { | ||
color: '#4D5663', | ||
}, | ||
gridcolor: '#E1E5ED', | ||
titlefont: { | ||
color: '#4D5663', | ||
}, | ||
zerolinecolor: '#E1E5ED', | ||
}, | ||
yaxis1: { | ||
title: '', | ||
tickfont: { | ||
color: '#4D5663', | ||
}, | ||
zeroline: false, | ||
gridcolor: '#E1E5ED', | ||
titlefont: { | ||
color: '#4D5663', | ||
}, | ||
zerolinecolor: '#E1E5ED', | ||
}, | ||
plot_bgcolor: '#F5F6F9', | ||
paper_bgcolor: '#F5F6F9', | ||
}, | ||
frames: [], | ||
selectedLegends: ['a'], | ||
}; |
65 changes: 0 additions & 65 deletions
65
packages/react-examples/src/react-charting/DeclarativeChart/schema/fluent_donut.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕵🏾♀️ visual regressions to review in the fluentuiv8 Visual Regression Report
Callout 2 screenshots
react-charting-AreaChart 1 screenshots
react-charting-LineChart 1 screenshots