Comments (7)
@sibliss confirmed the issue. It seems like issuing on initializing, because after generation, do resize of the window or implicitly calling .resize()
will be positioned well.
The generation code is like:
bb.generate({
"data": {
"columns": [
["data1", 5, 10, 15]
],
"type": "bar"
},
"axis": {
x: {
type: "category",
categories: ["text1", "text2", "text3"],
},
"rotated": true
},
});
and the correct rendering should be :
For this moment, do
const chart = bb.generate(...);
chart.resize();
from billboard.js.
I see this issue is closed, does this mean that you regard it as fixed or is there another issue for it now? I am asking because I am using the most recent version of billboard and I have come across this problem
from billboard.js.
@laurencedorman, I'll try to check again
from billboard.js.
@laurencedorman, it's still happening?
with the latest, seems problem has been solved.
If you have any other issue rather than that or reproduction code, let me know for check.
For now, closing the issue.
from billboard.js.
I just confirmed this issue has reappeared in v1.2.0. I installed v1.0.1 and the issue corrected itself to center on the bar.
Correction: even downgrading to v1.0.1 didn't work for me.
export function composeGraphOptions(componentProps) {
return {
bindto: `#${componentProps.chartID}`,
data: {
type: 'bar',
groups: [componentProps.data[0]],
rows: componentProps.data
},
padding: {
top: 10
},
axis: {
rotated: true,
x: {
type: 'category',
categories: [
'Voice',
'Chat'
],
},
y: {
show: false
}
},
grid: {
},
legend: {
show: false
},
svg: {
classname: 'stacked-chart'
},
tooltip: {
grouped: false,
}
}
}
I'll use chart.resize()
for now
from billboard.js.
Hi @netil, I think the problem is related with the legend attribute. This still happening when the legend attribute is false.
https://jsbin.com/cabemapudu/1/edit?html,js,output
from billboard.js.
@fcodias got it thanks.
It seems to have miscalculation with the legend occupied area.
from billboard.js.
Related Issues (20)
- radar type generation on ESM
- Remove point def element added on unload
- legend: Legend tooltip ignores data.names HOT 3
- [Feature Request] legend: Provide key and value as arguments for format
- interface indent
- Inconsistence in tooltip y coordinate in gauge with arc.rangeText + title.text
- Replace karma due to the deprecation
- Is there any way to create two combined charts which share a single x-axis? HOT 1
- About domain in `clip-path` HOT 1
- inconsistency in the scaling of the y-axes HOT 4
- x-axis label overlapped by tick text HOT 1
- option for rotating axis labels
- `arc.needle.value` is missing from typings HOT 1
- "boost.useWorker: true" in combination with frequent updates results in a consistent tab crash HOT 2
- Adopt eslint v9
- Implement regions.label to .region() API HOT 1
- Add regions.label type definition
- Scatter Plot points not displaying when loaded into chart in some cases HOT 1
- Chart data update with overriden transition duration freezes app
- Implement option to force event to work multiple xs type work as single x
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 billboard.js.