Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scatter - Getting 2 results for 'Series' in popover #63

Open
jammarsh opened this issue Oct 24, 2015 · 2 comments
Open

Scatter - Getting 2 results for 'Series' in popover #63

jammarsh opened this issue Oct 24, 2015 · 2 comments

Comments

@jammarsh
Copy link

I have the following code:

<graph data="zipped" width="100%" height="600px">
  <x field="x" type="Measure"></x>
  <y field="prediction" type="Measure"></y>
  <scatter-plot field="x" series="prediction"></scatter-plot>
</graph>

Some of the y values are integers and some are floating point values. The vales that are floats have 2 entries in the chart popover, one that is rounded to the nearest int, and one that is the floating point value. They seem to be plotting correctly, but I am confused as to where this rounded value is coming from. Is the the expected result? You can see it in the attached screenshots.
screen shot 2015-10-24 at 2 13 15 pm
screen shot 2015-10-24 at 2 13 25 pm
screen shot 2015-10-24 at 2 24 37 pm

@paulcpederson
Copy link
Owner

@jammarsh would you mind pasting your data? I'm assuming it looks something like:

[
  {
    "x": 64,
    "prediction": 190
  },{
    "x": 68,
    "prediction": 195
  },{
    "x": 69,
    "prediction": 198
  },{
    "x": 70,
    "prediction": 205
  },{
    "x": 67,
    "prediction": 198
  },{
    "x": 76,
    "prediction": 195
  }
]

@jammarsh
Copy link
Author

jammarsh commented Dec 4, 2015

@paulcpederson: here you go.

[{ "x": 1, "prediction": 2.35 }, { "x": 2, "prediction": 2.35 }, { "x": 3, "prediction": 4.34 }, { "x": 4, "prediction": 5.2733333333333325 }, { "x": 5, "prediction": 7.540000000000001 }, { "x": 6, "prediction": 9 }, { "x": 7, "prediction": 9 }, { "x": 8, "prediction": 13.033333333333331 }, { "x": 9, "prediction": 14.433333333333332 }, { "x": 10, "prediction": 15.666666666666666 }]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants