dev.socrata.com icon indicating copy to clipboard operation
dev.socrata.com copied to clipboard

"Create a column chart with Highcharts" Article Data Path Invalid

Open PracticalCode opened this issue 2 years ago • 0 comments

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."}

PracticalCode avatar Aug 17 '22 14:08 PracticalCode