Comments (4)
From olau%[email protected] on January 17, 2008 10:34:14
Do you have an example page to speed up reproducing the problem?
from flot.
From olau%[email protected] on September 08, 2008 10:32:36
I haven't been able to reproduce this so I'm going to close the bug. If you can
provide an example page that shows the problem, please reopen.
from flot.
From [email protected] on October 15, 2008 20:47:49
I do get the same symptom, but I think the problem is the legend. I've been fighting
with it for a few hours now! I'm specifying a container in the options and sending
that in a json string to flot. The error is
Error: options.legend.container.html is not a function
Source File: ....scripts/jquery.flot.js Line: 1505
I tried to make sure that the object is actually there in DOM and it is there, but
setting its html fails in jquery. Any idea why? I'm accssing the object via its id.
example of json options:
"options":{"grid":{"autoHighlight":true,"hoverable":true,"backgroundColor":"#fafafa"},"legend":{"container":"$("#153079005_389397849_legend")"},"xaxis":{"ticks":0},"bars":{"fill":0.7}}}
from flot.
From [email protected] on October 16, 2008 08:27:12
It looks to me like you're passing in a string as container, a string containing a
Javascript expression, but nevertheless just a string. You need to evaluate the
expression inside the string somehow, Flot won't work with a string, it needs the
jQuery object.
If you send over the id of the container, you could find the element before passing
it to Flot, something like
options.legend.container = $("#" + theContainerId);
$.plot($("#placeholder"), data, options);
Actually, it could make sense to extend Flot to support passing in a jQuery query
string, so you could specify "#myid" instead of $("#myid"). A patch is welcome. :)
from flot.
Related Issues (20)
- /API.md and /docs/API.md
- X-Axis labeling offset. HOT 2
- I want enable aboveData:true or false each markings.
- Calling plot.setData() with added data with timestampes does not show graph
- How to change font size for tick values HOT 1
- Log Scale Doing Funky Things at the Edge of the Graph HOT 1
- Dist version of Flot doesn't work with stacked graphs (source/... works)
- Ability to have custom symbols react to data values gone
- Nanoseconds Support
- GitHub releases section is very old HOT 1
- Changelog is very old
- News are very old
- Google+ is dead HOT 1
- Last point not connected in step mode
- Basic example - which scripts are necessary? HOT 2
- Hh
- Legend: Cannot set properties of undefined (setting 'width')
- available version on npm in not in sync with github
- 404 - Page not found in Documentation (PLUGINS.md is missing) HOT 1
- Bar width not rendering correctly 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 flot.