Code Monkey home page Code Monkey logo

chart.js's People

Contributors

andyburke avatar bendxn avatar chandruxp avatar derekperkins avatar dima117 avatar esamattis avatar etimberg avatar fizerkhan avatar fntneves avatar fulldecent avatar ilyakatz avatar jakesylvestre avatar jbrooksuk avatar johnheroy avatar jonrowe avatar jtibble avatar mardaneus86 avatar maxraoux avatar mbrevda avatar miosss avatar mparramont avatar msrocka avatar nnnick avatar ooflorent avatar sorrycc avatar steaks avatar tannerlinsley avatar winnetou avatar yawningmamba avatar zymiboxpay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chart.js's Issues

Stack chart?

Hi
I have a question.
Do you have a plan to provide Stack chart?
Thanks!

labelsFilter no longer seems to work

I've just updated from beta4, and my labelsFilter no longer seems to work.

Looking at the example on jsfiddle, that doesn't seem to be filtering either...

sparse data sets produce curvey lines

screen shot 2014-12-20 at 15 46 46
when 3 points are the same surrounded by sparse data sets a moustache like line is created as the charts thinks the data is coming up from 0 and back to 0.

Enhancement request: Pie chart tooltips always displayed by default

On pie-doughnut charts, would it possible to display at all times (not only when you hover over) the tooltips?
Kinda like google charts do. https://jsfiddle.net/1c4yyumf/

It is not hard to modify the original tooltipTemplate option to display whatever you want when you hover over each slice. But the issue is when you print or take a screenshot, the values/percentages are not displayed. Maybe add an option like "showAllTooltips=true" to display all tooltips for each segment as soon as the chart is drawn.

Thanks.

edit: I found a workaround, http://jsfiddle.net/5gyfykka/

onAnimationComplete: function()
{
this.showTooltip(this.segments, true);
},

Enabling tooltip when hovering over labels.

Another great addition would be the option to show tooltips when hovering over the horizontal labels in bar charts. Currently the tooltip only shows up when you hover over the bar.

This is especially useful in situations where the value differences are so high that the small bar is barely showing or when the bars are really thin.

Trouble with adpation of your fork for using draw down bar from 0 for negatives value

Hi,
i've contact you by mail, and for make the discussion easier, you've aksed me to post a issue here so there it is ! ;)
i've got some trouble to adapt your fork for make it draw down bar from 0 for negatives values.

At first place, I was looking for a fork of Chartjs api wich support negative values correctly. I found a post of nnnick in the issue part where he explains how we can succeed to draw negative value down from 0 so I try to do some modification in the chart.js file to do that (following the indication of nnnick) and I succeed I get this :
http://fiddle.jshell.net/Mokette/x2vy0nvh/2/
(you probably have to run it for make it draw properly -> positifves values draw up from 0 to value and negatives draw down from 0 to value)
(in this fiddle it’s the chartjs file with some modification for drawing negatives values down from 0, it’s work pretty well :) )

Then I’ve been ask to draw multiple graph (a bar and two line) in the same canvas so I look for a fork wich permit these functionality and I found yours !
It work really good for drawing multiple graph with the new overlay extension but it doesn’t work for drawing negatives values.
So I try to do the same modification to the Chart.js file of your fork to add the functionality of drawing bars down from 0 for bar graph but I didn’t succeed to make it work well :s
http://fiddle.jshell.net/Mokette/xL0bdcmb/1/
This is the fiddle where I load your chart.js file from your fork with my modification for drawing bar down :) but didn’t work as the first fiddle for drawing bar down but still work well for multiple graph :)

You can find here http://gnomebusters.fr/jsfiddle/files/ two file, the chart.js file I use in my second fiddle (the Chart.js file is the one from your fork where i add some modification to test drawing negatives bars) and a .txt file where I explain where I’ve added/modify your fork to try to draw negative bars.

is it possible to hide the dot if the value is same as previous

I am using a chart in my page using chart.js I have on my x axis dates while on my y axis values(cost). I want to keep the line chart continue its value until there is a change and have coded for that. Here is the output

http://i.stack.imgur.com/nWfrR.png

In this as marked if the value is same I have dots plotted. I have an option to remove all dots but I want to remove dots if the value is same as previous.(there is no change). I would like to know if this is doable. If please guide me how to go for it?

Horizontal line missing on responsive

I got this issue when putting chart in the percentage div. And set responsive to True.

When you resize the browser, the horizontal line will gone missing if the div size is larger than when it's created.

This occurred in Overlay, Line & Bar type (as far as I tested).

Here is the example: http://fiddle.jshell.net/ao0fcwya/

Fix rotate when use labelsFilter

the rotation of labels is calculated with all label length,
can you make the rotation depends on the label length after filter?

Target Line

Is there a way to add a horizontal target line (non-connecting line graph)?

image

Possible Mobile problem

Hi!
Great job with the bar-line custom script!
I would like to report something that happened to me, but I dont know if it happens only with me.
I've created a bar-line chart e on my laptop with chrome it worked fine.
But I tried open the same chart on my phone Nexus 4 (chrome) but it show the chart.js default charts... but doesnt show the custom bar-line chart.
Could you test on you mobile browser? Thanks.

Double Y axis

Hi,
I found your Overlay solution for mixing bar and line chart excellent, but I wonder do you plan to add support for additional Y axis; e.g. one for bar and another for line chart values?

positionning stacked bars

hello
i would like to ask if is it possible to draw stacked bars not from the graph base but from the end of the previous bar like image below
capture d ecran 2015-02-02 a 10 25 14
thanks in advance

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.