Comments (4)
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
from chartjs-chart-boxplot.
- Why are two boxplots rendering, but the outliers are only on one of them? I've been messing around with this codesandbox for a little bit and I can't really tell why there would be two charts.
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.
max: Math.max(
Number(props.data.plot_info.max)
Number(props.data.anomaly_data.pt1.value),
Number(props.data.anomaly_data.pt2.value)
),
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.
from chartjs-chart-boxplot.
This is great! I didn't expect you to edit the codesandbox, but thank you so much for that!
I see there was some trouble with the tooltip, btu that's okay, I can figure that out!
I have a couple clarification questions if you don't mind:
-
Why are two boxplots rendering, but the outliers are only on one of them? I've been messing around with this codesandbox for a little bit and I can't really tell why there would be two charts.
-
For both
min
andmax
why do you use this syntax?
max: Math.max(
Number(props.data.plot_info.max)
Number(props.data.anomaly_data.pt1.value),
Number(props.data.anomaly_data.pt2.value)
),
I see that if I take out the pt1
and pt2
lines, the chart get cut off at the top and bottom, but other than that, it stays the same I believe. Are the min
and max
values from the data not enough there? Doesn't putting the outlier pt1
and pt2
values in there mess with min
and max
? Just unsure of the purpose for all three values in min
and max
.
But seriously though, this library has been a huge help to me and your quick responses are much appreciated! Thank you so much!
from chartjs-chart-boxplot.
Ahhhh, yeah. So I talked with my backend dev and he was saying that the real_value
is all of the data points that they have and that they're doing the conversion on the backend themselves; even though your library does the conversions as well. Thanks for that heads up!
The data that I am working with is just dummy
data apparently and even I wondered why they seemed so off.
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!
from chartjs-chart-boxplot.
Related Issues (20)
- Boxplot overlaps with other chart types (ie. bar) by default - how to change that so the different types are side by side? HOT 1
- NPM ? HOT 2
- Boxplot axis doesn't extend for precomputed outliers HOT 2
- Whiskers are drawn wrong HOT 1
- I have no idea how to style outliers HOT 1
- Example website is down (https://sgratzl.com/) HOT 2
- Violin chart does not work when config.data.labels is empty HOT 3
- Feature request: tooltip on individual points on a box plot HOT 3
- Where is the configuration document. HOT 1
- Ability to remove the whiskers HOT 2
- Type improvements for `IBoxPlot` and other interfaces HOT 1
- Missing appropriate dataset option types from BarControllerDatasetOptions
- Scale issue HOT 2
- Is it possible to have different colors for each datapoint? HOT 1
- Getting error Object literal may only specify known properties, and 'boxplot' does not exist in type '_DeepPartialObject<ElementOptionsByType<"boxplot">>' during GitHub build HOT 2
- Adding chart-boxplot to project gives an error with chartjs-chart-geo HOT 3
- Time axis with Boxplot HOT 1
- ViolinPlot in vue-chart.js HOT 4
- [Violin Plot] Violin.ts: lineTo()/moveTo() order and missing ctx.beginPath() causes gaps in violin plot HOT 2
- Controlling the width / thickness of the boxplot HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chartjs-chart-boxplot.