score:0
Accepted answer
there's problem in this line
url = '/sources/data/' + $('#source_id').val() + '/' + $(this).val();
you have to
add extension 'json' to the url
or change route file
resources :source, defaults: {format: :json}
Source: stackoverflow.com
Related Query
- Receiving 406 error making d3.json call to rails app
- JSON call error with d3js
- D3.js json error when making tree
- 404 error - unable to find JSON file when making a map but it looks like it's in the right place
- Making Cubism.js work with Rails app
- Create a json object in Rails app for d3.js but depending on the paginating
- Hitting browser "back" button shows JSON rather than HTML (using Rails & d3.js)
- No 'Access-Control-Allow-Origin' header is present on the requested resource Error when loading JSON file
- Updating the data of a pack layout from JSON call and redrawing
- 404 Error while trying access JSON file using D3 Framework
- Mysql to JSON to D3js no Visual... "class" identification error
- JavaScript error "Uncaught TypeError: Cannot call method 'push' of undefined" D3.js
- Basic JSON Formatting for C3.js when data loaded via URL using Rails
- Challenges in beginning with d3.js in a basic rails 4 app
- How do you call data from nested JSON array using d3?
- d3.js Maximum call stack size exceeded error
- d3.js json uncaught syntax error unexpected token o
- Stumped by d3 error I'm receiving - Error: <path> attribute d: Expected number, "M0,NaNL21.923076923…"
- Error reading JSON file in Bundle layout in D3.js
- Accessing JSON information from Rails in d3.js
- How to call JSON from a file instead of in-line for Multi-Edge D3 Example
- load json file in nodejs/express app into d3
- Create JSON from database query rails
- D3 - passing JSON data through AJAX call
- Installing rubygem d3js into a Rails 5 app, receiving railties compatibility issues
- IE 11 - unable to load json file in D3 on local computer - "SCRIPT 5 Access is Denied" error due to Same Origin Policy
- Adding react-d3 to my react-native app causes a error
- Error parsing d3 line chart JSON data
- Is this JSON I made using jsonify with flask and python 3 formatted correctly for making a D3 graph? And if not, how should I format it?
- D3 - V3: Scope error when using data loaded from a json file
More Query from same tag
- best way to get available dimensions for svg in d3.js
- Is querySelectorAll a good way to select elements in multiple charts?
- brush and context for a line graph
- D3JS: is it possible to pass a function which retrieves a value to "transform, translate" property?
- d3.js radial tree layout variable node length / text wrap node description
- D3js v5 Trying to select multiple bars in bar chart using brush and saving values to variable and table
- How to create vertically grouped bar chart in d3.js using json data?
- D3 dougnut chart customizing circle color
- d3 cross-linked mouseOver nodes
- Error when transitioning an arc: <path> attribute d: Expected arc flag ('0' or '1')
- D3 chart example "TypeError: data is undefined"
- D3 append element to end of text
- d3v4 inverse bubble chart with animation/screen size adaptation
- Updating D3 zoom behavior from v3
- Force collision for y position in bubble chart
- Pushing x and y values into array variables
- Is it possible to have zooming option in NVD3 charts as like in Highcharts?
- Unable to access the table column values using d3.selectAll
- No new elements on page using D3
- How to round top and bottom corner of stacked bar chart?
- d3.js - Why does my SVG tags get added inside the HTML tag
- D3 mouseover text positioning
- Replace old content d3
- Connecting the data to my code using d3.js
- Text borders in svg and d3
- D3.js - stacked bar chart with rounded corners
- Tooltip returning [object, Object]
- Can a streamgraph be zoomable?
- What's the equivalent to force.start() in d3 v5?
- D3: Finding the area of a geo polygon in d3