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
Structure for using precomputed data in boxplot chart via props. #32
Comments
the example shows different variants to show four boxplots. Each of the variants will show a boxplot. I played a bit with your code sandbox: https://codesandbox.io/s/boxplot-chartjs-vue-3-with-specific-datastructure-forked-lqlgpb?file=/src/components/BoxPlotChart.vue |
This is great! I didn't expect you to edit the codesandbox, but thank you so much for that! I have a couple clarification questions if you don't mind:
I see that if I take out the But seriously though, this library has been a huge help to me and your quick responses are much appreciated! Thank you so much! |
you configured two, the first one was the raw values, the second the given boxplot values. I just added to "something", "something else" that you can see both.
didn't seem like that "max" is really the maximum value considering the outliers. As you mentioned, the effect is that the scale doesn't go till the outliers. |
Ahhhh, yeah. So I talked with my backend dev and he was saying that the The data that I am working with is just Either way, this has been a massive help for me. I wish I would've asked you sooner about these boxplots because you taught me more about them in my last post and this one than any of the engineers I work with 😅 Thanks again for the quick and brilliant responses and the wonderful library! |
So I saw this post and I was wondering how the structure in your attached linked works.
I have a pretty weird data structure coming from my backend and I'm not exactly sure how to slot all of that data in the structure you have.
So I have an array with a bunch of objects, each object looks like this :
So all 3 of these objects are going to help me build out my boxplot chart. First, the
plot_info
is all of the boxplot data that the backend provides me, like the question linked from early March; there are some bits of data we don't need (plot_type and unit).Second, the
value.real_value
is all of the values in an array (status doesn't matter here). Finally,anomaly_data.value
is our outliers.I am a bit lost on how to get this data to actually filter into the boxplot chart properly using the format you linked in the previous question:
This is all in one dataset, yet there are 3 objs with
min, q1, median, q3, max, items
; some of which haveitems
,outliers
or nothing at all. I figured the first array of[1, 2, 3, 4, 5]
would be myvalue.real_value
, but now I'm not so sure.Context
This is in a vue3 project, but using largely JS for boxplot charts.
Additional context
I made a Codesandbox for this example and am trying to work with it, but so far, no luck. Any ideas or advice would be greatly appreciated. Again, thank you for all your help so far and I look forward to hearing back soon!
The text was updated successfully, but these errors were encountered: