Skip to content
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 to doc - examples of changing data formats #446

Open
ghudgins opened this issue Sep 28, 2018 · 1 comment
Open

Add to doc - examples of changing data formats #446

ghudgins opened this issue Sep 28, 2018 · 1 comment
Labels

Comments

@ghudgins
Copy link

This one takes a string to a number...

{
  "type": "line",
  "datasets": [
    {
      "url": "https://services1.arcgis.com/KVHZNprt62ZdIujN/arcgis/rest/services/Affordable_Housing/FeatureServer/0",
      "query": {
        "groupByFieldsForStatistics": "Year",
        "outStatistics": [
          {
            "statisticType": "sum",
            "onStatisticField": "CAST(Ownership_Homes as float)",
            "outStatisticFieldName": "Ownership_Homes_Sum"
          },
          {
            "statisticType": "sum",
            "onStatisticField": "CAST(Rental_Homes as float)",
            "outStatisticFieldName": "Rental_Homes_Sum"
          }
        ],
        "orderByFields": "Year ASC",
        "sqlFormat": "standard"
      }
    }
  ],
  "series": [
    {
      "category": {
        "field": "Year",
        "label": "Year"
      },
      "group": true,
      "value": {
        "field": "Ownership_Homes_Sum",
        "label": "Ownership_Homes_Sum"
      }
    },
    {
      "category": {
        "field": "Year",
        "label": "Year"
      },
      "value": {
        "field": "Rental_Homes_Sum",
        "label": "Rental_Homes_Sum"
      },
      "group": true
    }
  ]
}
@tomwayson
Copy link
Member

yea, but 'is one goes to 11!

@tomwayson tomwayson added the docs label Dec 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants