-
Notifications
You must be signed in to change notification settings - Fork 1
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
add timeline sample #21
Open
mddifilippo89
wants to merge
9
commits into
24.2.x
Choose a base branch
from
mdd-timeline-sample
base: 24.2.x
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.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
78a0343
Create timeline-axis-type.json
mddifilippo89 0bf0784
Update timeline-axis-type.json
mddifilippo89 6aba4b7
Update timeline-axis-type.json
mddifilippo89 a423706
Update timeline-axis-type.json
mddifilippo89 af2b595
Merge branch 'vnext' into mdd-timeline-sample
mddifilippo89 857f399
Update timeline-axis-type.json
mddifilippo89 f1f7b51
mdd-peer-review
mddifilippo89 dd5d97d
Update timeline-axis-type2.json
mddifilippo89 0ecb8d6
Update timeline-axis-type2.json
mddifilippo89 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 |
---|---|---|
@@ -0,0 +1,95 @@ | ||
{ | ||
"export": true, | ||
"strings": { | ||
"legendTitle": "Brexit Timeline" | ||
}, | ||
"descriptions": { | ||
"content": { | ||
"type": "DataChart", | ||
"name": "chart", | ||
"plotAreaMarginLeft": 100, | ||
"plotAreaMarginRight": 100, | ||
"chartTitle": "Brexit Timeline", | ||
"axes": [ | ||
{ | ||
"type": "CategoryXAxis", | ||
"name": "xAxis", | ||
"dataSourceRef": "data", | ||
"label": "Year", | ||
"labelLocation": "OutsideBottom" | ||
}, | ||
{ | ||
"type": "TimeXAxis", | ||
"name": "xAxis", | ||
"dataSourceRef": "data", | ||
"dateTimeMemberPath": "Year", | ||
"labelLocation": "OutsideBottom" | ||
}, | ||
{ | ||
"type": "NumericYAxis", | ||
"name": "yAxis", | ||
"title": "TWh", | ||
"labelLocation": "OutsideRight" | ||
} | ||
], | ||
"plotAreaBackground": "rgba(255,255,255,1)", | ||
"series": [ | ||
{ | ||
"type": "LineSeries", | ||
"name": "LineSeries1", | ||
"xAxisRef": "xAxis", | ||
"yAxisRef": "yAxis", | ||
"dataSourceRef": "data", | ||
"valueMemberPath": "Value", | ||
"markerType": "Circle" | ||
}, | ||
{ | ||
"type": "CalloutLayer", | ||
"name": "CalloutLayer1", | ||
"targetSeriesRef": "LineSeries1", | ||
"dataSourceRef": "data", | ||
"xMemberPath": "", | ||
"yMemberPath": "Value", | ||
"labelMemberPath": "Year", | ||
"isAutoCalloutBehaviorEnabled": false, | ||
"useValueForAutoCalloutLabels": false, | ||
"calloutLeaderBrush": "#EC0D00", | ||
"calloutTextColor": "navy", | ||
"calloutOutline": "#EC0D00", | ||
"calloutBackground": "transparent", | ||
"isCalloutOffsettingEnabled": false, | ||
"textStyle": "font-size: 0.8rem", | ||
"calloutPositionPadding": 50, | ||
"calloutCollisionMode": "Greedy", | ||
"showDefaultTooltip": false | ||
} | ||
], | ||
"legendRef": null, | ||
"background": "rgba(0, 0, 0, 0)" | ||
} | ||
}, | ||
"refs": { | ||
"data": [ | ||
{"Date": "2016, 6, 23", "Year": "23 JUN, 2016", "Value": 5, "Details": "UK votes to exit the EU"}, | ||
{"Date": "2017, 3, 29", "Year": "29 MAR, 2017", "Value": 5, "Details": "The UK triggers Article 50"}, | ||
{"Date": "2017, 6, 19", "Year": "19 JUN, 2017", "Value": 5, "Details": "Brexit negotiations begin"}, | ||
{"Date": "2017, 3, 19", "Year": "19 MAR, 2018", "Value": 5, "Details": "The EU and the UK agree on a transition phase"}, | ||
{"Date": "2018, 11, 25", "Year": "25 NOV, 2018", "Value": 5, "Details": "Draft withdrawl deal agreed"}, | ||
{"Date": "2019, 10, 29", "Year": "29 OCT, 2019", "Value": 5, "Details": "EU heads of state and government approve postponing the Brexit date"}, | ||
{"Date": "2020, 12, 31", "Year": "31 DEC, 2020", "Value": 5, "Details": "Transition period ends"} | ||
] | ||
}, | ||
"modules": [ | ||
"withDescriptions", | ||
"charts/DataChartCoreModule", | ||
"charts/DataChartCategoryCoreModule", | ||
"charts/DataChartCategoryModule", | ||
"charts/DataChartVerticalCategoryModule", | ||
"charts/TimeXAxisModule", | ||
"charts/DataChartInteractivityModule", | ||
"charts/DataChartExtendedAxesModule", | ||
"charts/DataChartAnnotationModule", | ||
"charts/AnnotationLayerProxyModule", | ||
"charts/CalloutLayerModule" | ||
] | ||
} |
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,80 @@ | ||
{ | ||
"export": true, | ||
"descriptions": { | ||
"content": { | ||
"type": "DataChart", | ||
"name": "chart", | ||
"plotAreaMarginLeft": 100, | ||
"plotAreaMarginRight": 100, | ||
"axes": [ | ||
{ | ||
"type": "CategoryXAxis", | ||
"name": "xAxis1", | ||
"dataSourceRef": "data", | ||
"labelLocation": "OutsideBottom" | ||
}, | ||
{ | ||
"type": "TimeXAxis", | ||
"name": "xAxis2", | ||
"dataSourceRef": "data", | ||
"dateTimeMemberPath": "Year", | ||
"labelLocation": "OutsideBottom" | ||
}, | ||
{ | ||
"type": "NumericYAxis", | ||
"name": "yAxis", | ||
"labelLocation": "OutsideRight" | ||
} | ||
], | ||
"series": [ | ||
{ | ||
"type": "CalloutLayer", | ||
"name": "CalloutLayer1", | ||
"targetSeriesRef": "LineSeries1", | ||
"dataSourceRef": "data", | ||
"xMemberPath": "Index", | ||
"yMemberPath": "Value", | ||
"labelMemberPath": "Year", | ||
"isAutoCalloutBehaviorEnabled": false, | ||
"useValueForAutoCalloutLabels": false, | ||
"isCalloutOffsettingEnabled": false, | ||
"calloutPositionPadding": 50, | ||
"calloutCollisionMode": "Greedy", | ||
"showDefaultTooltip": false | ||
}, | ||
{ | ||
"type": "LineSeries", | ||
"name": "LineSeries1", | ||
"xAxisRef": "xAxis1", | ||
"yAxisRef": "yAxis", | ||
"dataSourceRef": "data", | ||
"valueMemberPath": "Value" | ||
} | ||
] | ||
} | ||
}, | ||
"refs": { | ||
"data": [ | ||
{"Index": 0, "Date": "2016, 6, 23", "Year": "23 JUN, 2016", "Value": 5, "Details": "UK votes to exit the EU"}, | ||
{"Index": 1, "Date": "2017, 3, 29", "Year": "29 MAR, 2017", "Value": 5, "Details": "The UK triggers Article 50"}, | ||
{"Index": 2, "Date": "2017, 6, 19", "Year": "19 JUN, 2017", "Value": 5, "Details": "Brexit negotiations begin"}, | ||
{"Index": 3, "Date": "2017, 3, 19", "Year": "19 MAR, 2018", "Value": 5, "Details": "The EU and the UK agree on a transition phase"}, | ||
{"Index": 4, "Date": "2018, 11, 25", "Year": "25 NOV, 2018", "Value": 5, "Details": "Draft withdrawl deal agreed"}, | ||
{"Index": 5, "Date": "2019, 10, 29", "Year": "29 OCT, 2019", "Value": 5, "Details": "EU heads of state and government approve postponing the Brexit date"}, | ||
{"Index": 6, "Date": "2020, 12, 31", "Year": "31 DEC, 2020", "Value": 5, "Details": "Transition period ends"} | ||
] | ||
}, | ||
"modules": [ | ||
"withDescriptions", | ||
"charts/DataChartCoreModule", | ||
"charts/DataChartCategoryCoreModule", | ||
"charts/DataChartCategoryModule", | ||
"charts/DataChartVerticalCategoryModule", | ||
"charts/TimeXAxisModule", | ||
"charts/DataChartInteractivityModule", | ||
"charts/DataChartExtendedAxesModule", | ||
"charts/DataChartAnnotationModule", | ||
"charts/AnnotationLayerProxyModule", | ||
"charts/CalloutLayerModule" | ||
] | ||
} |
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.
missing title setting