John Gravois thanks for the sample. Any idea on how to set the label on the chart defined by the JSON below? I want the y label to to be 'Number of trips'.....I can use the ember-cli-cedar page (and HUB) to draw the chart, but there is no Y axis label. And i can't figure out how to force one to show up. Or is there a better way to configure the chart?
Thank you.
{
"type": "bar",
"datasets": [{
"url": "https://services2.arcgis.com/McQ0OlIABe29rJJy/ArcGIS/rest/services/mode_share_from_ACS_2017/FeatureServer/0",
"name": "auto",
"query": {
"where": "NOT(County = '4-county') AND Mode = 'Auto'",
"orderByFields": "Trips_SUM DESC",
"groupByFieldsForStatistics": "County",
"outStatistics": [{
"statisticType": "sum",
"onStatisticField": "Trips",
"outStatisticFieldName": "Trips_SUM"
}]
},
"join": "County"
},
{
"url": "https://services2.arcgis.com/McQ0OlIABe29rJJy/ArcGIS/rest/services/mode_share_from_ACS_2017/FeatureServer/0",
"name": "carpool",
"query": {
"where": "NOT(County = '4-county') AND Mode = 'Carpool ride share'",
"orderByFields": "Trips_SUM DESC",
"groupByFieldsForStatistics": "County",
"outStatistics": [{
"statisticType": "sum",
"onStatisticField": "Trips",
"outStatisticFieldName": "Trips_SUM"
}]
},
"join": "County"
},
{
"url": "https://services2.arcgis.com/McQ0OlIABe29rJJy/ArcGIS/rest/services/mode_share_from_ACS_2017/FeatureServer/0",
"name": "bike",
"query": {
"where": "NOT(County = '4-county') AND Mode = 'Bike'",
"orderByFields": "Trips_SUM DESC",
"groupByFieldsForStatistics": "County",
"outStatistics": [{
"statisticType": "sum",
"onStatisticField": "Trips",
"outStatisticFieldName": "Trips_SUM"
}]
},
"join": "County"
},
{
"url": "https://services2.arcgis.com/McQ0OlIABe29rJJy/ArcGIS/rest/services/mode_share_from_ACS_2017/FeatureServer/0",
"name": "walk",
"query": {
"where": "NOT(County = '4-county') AND Mode = 'Walk'",
"orderByFields": "Trips_SUM DESC",
"groupByFieldsForStatistics": "County",
"outStatistics": [{
"statisticType": "sum",
"onStatisticField": "Trips",
"outStatisticFieldName": "Trips_SUM"
}]
},
"join": "County"
},
{
"url": "https://services2.arcgis.com/McQ0OlIABe29rJJy/ArcGIS/rest/services/mode_share_from_ACS_2017/FeatureServer/0",
"name": "transit",
"query": {
"where": "NOT(County = '4-county') AND Mode = 'Transit'",
"orderByFields": "Trips_SUM DESC",
"groupByFieldsForStatistics": "County",
"outStatistics": [{
"statisticType": "sum",
"onStatisticField": "Trips",
"outStatisticFieldName": "Trips_SUM"
}]
},
"join": "County"
}
],
"series": [{
"category": {
"field": "County",
"label": "County"
},
"value": {
"field": "Trips_SUM",
"label": "Car"
},
"source": "auto",
"group": true
},
{
"category": {
"field": "County",
"label": "County"
},
"value": {
"field": "Trips_SUM",
"label": "Carpool"
},
"source": "carpool",
"group": true
},
{
"category": {
"field": "County",
"label": "County"
},
"value": {
"field": "Trips_SUM",
"label": "Bicycle"
},
"source": "bike",
"group": true
},
{
"category": {
"field": "County",
"label": "County"
},
"value": {
"field": "Trips_SUM",
"label": "Walk"
},
"source": "walk",
"group": true
},
{
"category": {
"field": "County",
"label": "County"
},
"value": {
"field": "Trips_SUM",
"label": "Transit"
},
"source": "transit",
"group": true
}
],
"style": {
"colors": [
"#283250",
"#2c5e79",
"#448c96",
"#7abaa9",
"#a1cebe"
]
}
}