dev.socrata.com
dev.socrata.com copied to clipboard
"Create a column chart with Highcharts" Article Data Path Invalid
The article's "Create a column chart with Highcharts" [https://dev.socrata.com/blog/2015/03/30/create-a-column-chart-with-highcharts.html] data / demo / example fiddle is broken because the data source has changed it's API:
Author: Mark Silverberg
In this fiddle: http://jsfiddle.net/marksskram/ed42ghw5/1/
This line of code: $.get('https://'+dataDomain+'/resource/'+dataSetId+'.csv?'+dataQueryString, function (csv) {
Tries to retrieve the data from: https://data.cms.gov/resource/xpsg-6hup.csv?$select=drg_definition,avg(average_covered_charges),avg(average_medicare_payments),avg(average_total_payments)&$group=drg_definition&$order=avg_average_medicare_payments+desc&$limit=5
To which the data source replies: {"code":"deprecated","error":true,"message":"The legacy SODA API is not supported. Please visit https://data.cms.gov/api-docs for information about migrating to the new API."}