I am creating a scatter chart using D3. The input JSON for the chart stores data within quotes, making them strings, while i need it in integer or numeric format.
This is what i am getting,
var data = [{"collision_with_injury": "2500", "dist_between_fail": "12000"}]
This is what i need,
var data = [{collision_with_injury: 2500, dist_between_fail: 12000}]
Is there a function in D3 or Jquery to convert the data object to one without quotes?