bars off the chart
See original GitHub issueExpected Behaviour
Actual Behaviour
Steps to Reproduce:
NOTE: Add a GIF/Screenshot if required.
Frappé Charts version:
const { Chart } = require("frappe-charts/dist/frappe-charts.min.cjs.js");
const data = {
labels: ["18:00", "19:00", "20:00", "21:00"],
datasets: [
{
chartType: "bar",
name: "prod",
values: [40, 50, 30, 60]
},
{
chartType: "bar",
name: "err",
values: [10, 10, 10, 0]
},
{
chartType: "bar",
name: "stop",
values: [10, 0, 20, 0]
}
]
}
const el = document.querySelector("body > div");
new Chart(el, { // or a DOM element,
title: "status preview",
data,
type: "axis-mixed",
colors: ["green", "red", "yellow"],
barOptions: {
stacked: true
}
// axisOptions: {
// xAxisMode: "tick",
// yAxisMode: "tick"
// }
})
Issue Analytics
- State:
- Created 3 years ago
- Comments:8
Top Results From Across the Web
A Complete Guide to Bar Charts | Tutorial by Chartio
Bar charts are a fundamental visualization for comparing values between groups of data. Use this guide to learn how to get the most...
Read more >Bar Chart: Definition, How Analysts Use Them, and Example
A bar chart shows where the price of an asset moved over a period of time and is useful for tracking prices and...
Read more >How to remove a bar from a bar chart
This is simple - I have a bar chart with 4 rows and 2 columns with a legend - I want to remove...
Read more >Bar Chart | Chart.js
A bar chart provides a way of showing data values represented as vertical bars. It is sometimes used to show trend data, and...
Read more >How to Sort Your Bar Charts - Depict Data Studio
To arrange your bar chart from greatest to least, you sort the # of votes column from largest to smallest. Well, that would...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For me looks like adding (global)
"type": "bar"
fixes the issue, but I must say that it worked without it for a while (with other datasets).Same here: