-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #655 from IgniteUI/mdd-chart-selection
Mdd chart selection
- Loading branch information
Showing
3 changed files
with
163 additions
and
0 deletions.
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,29 @@ | ||
{ | ||
"strings": { | ||
"legendTitle": "Average Temperature Range in New York" | ||
}, | ||
"descriptions": { | ||
"content": { | ||
"type": "CategoryChart", | ||
"name": "chart", | ||
"chartType": "Column", | ||
"dataSourceRef": "TemperatureAverageData", | ||
"yAxisTitle": "Temperature in Degrees Celsius", | ||
"yAxisTitleLeftMargin": 10, | ||
"yAxisTitleRightMargin": 5, | ||
"yAxisLabelLeftMargin": 0, | ||
"isHorizontalZoomEnabled": false, | ||
"isVerticalZoomEnabled": false, | ||
"crosshairsDisplayMode": "None", | ||
"toolTipType": "None", | ||
"selectionMode": "SelectionColorFill", | ||
"selectionBehavior": "Auto", | ||
"selectionBrush": "purple", | ||
"focusBrush": "purple" | ||
} | ||
}, | ||
"modules": [ | ||
"charts/CategoryChartModule", | ||
"charts/DataChartInteractivityModule" | ||
] | ||
} |
60 changes: 60 additions & 0 deletions
60
samples/charts/category-chart/selection-multiple-modes.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,60 @@ | ||
{ | ||
"strings": { | ||
"legendTitle": "Highest Grossing Movie Franchises" | ||
}, | ||
"descriptions": { | ||
"legend": { | ||
"type": "Legend", | ||
"name": "Legend", | ||
"orientation": "Horizontal" | ||
}, | ||
"editor": { | ||
"type": "PropertyEditorPanel", | ||
"name": "PropertyEditor", | ||
"componentRendererRef": "renderer", | ||
"targetRef": "chart", | ||
"descriptionType": "CategoryChart", | ||
"isHorizontal": true, | ||
"isWrappingEnabled": true, | ||
"properties": [ | ||
{ | ||
"type": "PropertyEditorPropertyDescription", | ||
"propertyPath": "SelectionMode", | ||
"name": "SelectionModeEditor", | ||
"label": "Selection Mode: ", | ||
"primitiveValue": "SelectionColorFill" | ||
}, | ||
{ | ||
"type": "PropertyEditorPropertyDescription", | ||
"propertyPath": "SelectionBehavior", | ||
"name": "SelectionBehaviorEditor", | ||
"label": "Selection Behavior: ", | ||
"primitiveValue": "PerSeriesAndDataItemGlobalSingleSelect" | ||
} | ||
] | ||
}, | ||
"content": { | ||
"type": "CategoryChart", | ||
"name": "chart", | ||
"chartType": "Column", | ||
"dataSourceRef": "EnergyRenewableConsumption", | ||
"legendRef": "Legend", | ||
"yAxisTitleLeftMargin": 10, | ||
"yAxisTitleRightMargin": 5, | ||
"yAxisLabelLeftMargin": 0, | ||
"isHorizontalZoomEnabled": false, | ||
"isVerticalZoomEnabled": false, | ||
"crosshairsDisplayMode": "None", | ||
"selectionMode": "SelectionColorFill", | ||
"selectionBehavior": "PerSeriesAndDataItemGlobalSingleSelect", | ||
"selectionBrush": "orange", | ||
"focusBrush": "orange" | ||
} | ||
}, | ||
"modules": [ | ||
"withDescriptions", | ||
"layouts/PropertyEditorPanelModule", | ||
"charts/LegendModule", | ||
"charts/CategoryChartModule" | ||
] | ||
} |
74 changes: 74 additions & 0 deletions
74
samples/charts/data-chart/radial-column-chart-selection.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,74 @@ | ||
{ | ||
"strings": { | ||
"legendTitle": "Ronaldo vs Messi Player Stats" | ||
}, | ||
"descriptions": { | ||
"legend": { | ||
"type": "Legend", | ||
"name": "Legend", | ||
"orientation": "Horizontal" | ||
}, | ||
"content": { | ||
"type": "DataChart", | ||
"name": "chart", | ||
"legendRef": "Legend", | ||
"isHorizontalZoomEnabled": false, | ||
"isVerticalZoomEnabled": false, | ||
"selectionMode": "SelectionColorFill", | ||
"selectionBehavior": "PerSeriesMultiSelect", | ||
"axes": [ | ||
{ | ||
"type": "CategoryAngleAxis", | ||
"name": "angleAxis", | ||
"dataSourceRef": "FootballPlayerStats", | ||
"label": "Attribute" | ||
}, | ||
{ | ||
"type": "NumericRadiusAxis", | ||
"name": "radiusAxis", | ||
"innerRadiusExtentScale": 0.1, | ||
"interval": 2, | ||
"minimumValue": 0, | ||
"maximumValue": 10 | ||
} | ||
], | ||
"series": [ | ||
{ | ||
"type": "RadialColumnSeries", | ||
"name": "RadialColumnSeries1", | ||
"dataSourceRef": "FootballPlayerStats", | ||
"angleAxisRef": "angleAxis", | ||
"valueAxisRef": "radiusAxis", | ||
"valueMemberPath": "Ronaldo", | ||
"showDefaultTooltip": false, | ||
"areaFillOpacity": 0.8, | ||
"thickness": 3, | ||
"title": "Ronaldo", | ||
"selectionBrush": "yellow" | ||
}, | ||
{ | ||
"type": "RadialColumnSeries", | ||
"name": "RadialColumnSeries2", | ||
"dataSourceRef": "FootballPlayerStats", | ||
"angleAxisRef": "angleAxis", | ||
"valueAxisRef": "radiusAxis", | ||
"valueMemberPath": "Messi", | ||
"showDefaultTooltip": false, | ||
"areaFillOpacity": 0.8, | ||
"thickness": 3, | ||
"title": "Messi", | ||
"selectionBrush": "aqua" | ||
|
||
} | ||
] | ||
} | ||
}, | ||
"modules": [ | ||
"charts/DataChartCoreModule", | ||
"charts/DataChartRadialModule", | ||
"charts/DataChartRadialCoreModule", | ||
"charts/DataChartInteractivityModule", | ||
"charts/DataChartAnnotationModule", | ||
"charts/LegendModule" | ||
] | ||
} |