Comments (2)
Turns out you need to wrap the whole setup in window.onload
-- I just remembered the theme methods will try to render a background and this won't work until ExCanvas is ready.
window.onload = function() {
var g = new Bluff.Line('example', '400x300');
g.title = 'My Graph';
g.tooltips = true;
g.theme_37signals();
g.data("Apples", [1, 2, 3, 4, 4, 3]);
g.data("Oranges", [4, 8, 7, 9, 8, 9]);
g.data("Watermelon", [2, 3, 1, 5, 6, 8]);
g.data("Peaches", [9, 9, 10, 8, 7, 9]);
g.labels = {0: '2003', 2: '2004', 4: '2005'};
g.draw();
};
from bluff.
that worked, thanks.
from bluff.
Related Issues (19)
- Feature request: spacing_factor option. HOT 2
- Give tooltip bullets a class name HOT 2
- Black lines around bars in bar graph HOT 1
- Setting text size using string ("8px") on IE give a "Invalid argument" error on line 2534. Using number (8) works fine. HOT 2
- Integer pie chart value labels are rounded to few significant digits HOT 4
- Bluff repeating last color unnecessarily if there are more data series than colors defined. HOT 1
- Update version info in release 3.6.1 HOT 13
- X labels not scaling correctly for SideBar graph HOT 1
- How to turn off automatic transposition detection? HOT 3
- Feature request: implement method to set background colors outside theme definition HOT 1
- New release with fixes for closed issues 9, 10 and 11 HOT 3
- How to draw Bar and Line in a single chart? HOT 1
- Bar Chart Markers Overlap HOT 2
- Strange line numbers HOT 2
- Y axis range is incorrect HOT 1
- Set y axis range per data set HOT 2
- Issue with scaling negative values in Bluff
- Tooltips question
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 bluff.