Comments (2)
One way you can force this to behave is to pass label_step
:
new Ico.BarGraph($('bargraph'),
{ data: [150, 100, 50, 25] },
{ bar_labels: true, label_count: 10, label_step: 15 });
from ico.
Thanks for the reply! I've done exactly this, and written a function that calculates the best "label_step" value based on max and min values of the dataset. I guess this is what I feel would be a nice feature for the "label_count" parameter - if it would automatically decide on the best "label_step" value.
from ico.
Related Issues (17)
- SparkLine and SparkBar don't work correctly in IE HOT 1
- Can't reduce the number of labels without reducing the number of HOT 2
- feature: line graph stroke width / nostroke option HOT 2
- Incorrect graph with all zero values HOT 5
- Misleading/incorrect element selectors in documentation HOT 2
- Ability to set each bar on a bar graph to a different colour HOT 5
- When defining labels, the vertical lines are incorrect HOT 1
- Update Existing LineGraph HOT 2
- Added Node.js examples
- Horizontal bar graphs with many values have the highest value go outside the bounds.
- Line graph build fails if all values match due to step == 0 HOT 2
- Ico extends Array.prototype… HOT 2
- Too many y-axis labels on low values HOT 3
- Line graph from example should be a straight line? HOT 2
- Multiple Bargraphs HOT 6
- Raphael 2.0? HOT 3
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 ico.