Comments (2)
this plugin doesn't support tooltips on individual points. On outliers (i.e. the grey point on the left), they should automatically appear.
from chartjs-chart-boxplot.
I am not sure if combing scatter plot and box plot is the correct way to do,
but it seems working for showing tooltip for a single point.
const boxplotData = {
// define label tree
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [{
label: 'Dataset 1',
backgroundColor: 'rgba(255,0,0,0.5)',
borderColor: 'red',
borderWidth: 1,
outlierColor: '#999999',
padding: 10,
itemRadius: 0,
order: 2,
data: [
randomValues(100, 0, 100),
randomValues(100, 0, 20),
randomValues(100, 20, 70),
randomValues(100, 60, 100),
randomValues(40, 50, 100),
randomValues(100, 60, 120),
randomValues(100, 80, 100)
]
},{
type: 'scatter',
label: 'Scatter Dataset',
borderColor: 'rgb(75, 192, 192)',
data:[{
x: 'January',
y: 20
}, {
x: 'January',
y: 40
}],
order:1,
}]
};
Reference:
https://www.chartjs.org/docs/latest/charts/mixed.html
https://codepen.io/sgratzl/pen/QxoLoY
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.