SciRuby / plotrb

A plotting library in Ruby built on top of Vega and D3.
Other
23 stars 6 forks source link

Plotrb camelcases some data fields for no apparent reason #19

Open translunar opened 10 years ago

translunar commented 10 years ago

I have the field :common_name in one of my data sets, and it gets turned into this:

    {
      "name": "minerals",
      "values": [
        {
          "commonName": "almandine",
          "low": 371,
          "high": 395

But elsewhere, references to common_name remain, so it won't plot properly:

    {
      "name": "absorbances",
      "type": "ordinal",
      "domain": {
        "data": "minerals",
        "field": "data.common_name"
      },
      "range": "height"
    },