GithubHelp home page GithubHelp logo

plotkit's People

Watchers

 avatar

plotkit's Issues

line graphs: going through 0,0 and maxX,0 seems errant; !shouldFill looks strange

Setting shouldFill = false tells PK not to fill in the line graphs;
however, the graph still has closed wire frame that:

1) starts at 0,0 (even if it’s not in the data set)
2) goes through each point of the data set (this is correct)
3) goes to the maxX,0 point (lower-right corner)
4) goes back to 0,0
5) is always white, regardless of the colorScheme setting

The expected behavior for non-filled line graphs would seem simply to be
going through each point with a line of the data set’s color.

Moreover, the filled line graphs should not go through 0,0 and maxX,0; they
should simply go down to the X axis from the first and last points of the
data set.

I am attaching a patch to SweetCanvas.js that resolves both of these issues
for that renderer.

Original issue reported on code.google.com by [email protected] on 16 Mar 2010 at 6:38

Ext-JS conflict

I wonder if this is your preferred location for a bug ticket...

What steps will reproduce the problem?
1. Use Ext-JS with your webpage
2. Use Plotkit with your webpage
3. Try to reproduce the "sqrt" bar plot example in your demos.

What is the expected output? What do you see instead?
I expect the example to work in a page that makes use of ExtJS (event if
it's only loading Ext with a JavaScript inclusion).
Instead I have an error and no chart.

What version of the product are you using? On what operating system?
I use PlotKit 0.9.1, MochiKit 1.3.1 and Ext-JS 2.1.
Firefox 2.0.0.16 on Windows Vista.

Please provide any additional information below.
The problem is that Ext-JS adds many functions to standard classes :
remove() inside arrays in our case.
Line 288 in Layout.js : var all = collapse(map(itemgetter(1),
items(this.datasets)));
At this line, we have an extraneous elements : index is 5 and value is
undefined.

Suggestion:EX
You should modify your usingPrototype() function to detect ExtJS, or always
set it to true as I think it would be more secure.


Best regards,
Olivier Favre

Original issue reported on code.google.com by [email protected] on 28 Jul 2008 at 8:12

xajax conflict

Tested with xajax and no propertly working.

A solution is to plot graph in a iframe.

Original issue reported on code.google.com by [email protected] on 4 Nov 2008 at 8:19

pie graphs skip colors for zero-value slices

If I specify these color values and data:

colorScheme: [ red, green, blue, yellow ]
data:        [  10,     5,    0,     10 ]

...what PlotKit will give is red, green, and blue slices; it skips the zero
value without accounting for this in the color scheme.

This is a problem when applications display dynamic data along with
custom-generated legends for the pie colors.

Original issue reported on code.google.com by [email protected] on 17 Mar 2010 at 7:44

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.