Integrating Ember bindings with highcharts - highcharts

I have a javascript application written with ember.js and am looking to bind an array of day containing various stats to some charting mechanism. I have been experimenting with highcharts with no luck. I have managed to get it to update through the setInterval function, but am unsure of how to incorporate a highcharts object and an ember object to allow for bindings/computed properties.
I am just beginning with ember, and I appreciate any help/ pointers in the right direction.

There is a JSFiddle around which illustrates how to use Highcharts with Ember.js, see http://jsfiddle.net/Bt2xy/12/.
EDIT: I found the corresponding thread http://highslide.com/forum/viewtopic.php?f=9&t=15397, so the credits of the JSFiddle go to user #mbloem and #hfrntt (Slawek Kolodziej).

Here is a working version of the fiddle above, with Ember rc6 and Highcharts 2: http://jsfiddle.net/qmmvx/2/
For Highcharts 3 the options structure has changed somewhat (and broken the previous fiddle) but the idea remains the same.
Changed dependency to:
http://code.highcharts.com/2.2.4/highcharts.js

Related

Knockout Computed Observable Array from other Observable Arrays

I am using knockout with my ASP.NET Core project to achieve following
1- I am trying to compute the sold inventory based upon opening, closing and delivery inventory of a product.
I have four arrays. OpeeningInventories,ClosingInventories, DeliveredInventories and SoldInventories. I am creating these arrays identically at the server side. Each array have a number of GasProducts (model). I have created JSFiddle to show you the code. Sorry the code somewhat works in my project but it is not working in JSFiddle. I will greatly appreciate if you can help me fix my problem. Thanks in advance. Here is the link to JSFIDLE

Highcharts: how to generate a few charts plus non-chart text in a single downloadable pdf file

I have a web page that has text AND a few Highcharts charts. I would like to provide a button to export ALL of them in a single PDF.
I did research and was unable to find a client-side tool that can do this with Unicode support. It seems that it has to be the server-side solution. And it seems to me that this may involve a few tools other than just Highcharts.
I am new to Highcharts. I would like to know how this can be accomplished technically, the flow, and what tools are needed.
I also have a question. How can a Highcharts chart be generated on the server-side and then put into a PDF document? Put it another way, can I generate the image or something of a Highcharts chart within a program, and then within the program, put it into a document (PDF) later?
Any pointer will be greatly appreciated.
Regards.

Can highcharts-convert create multiple-page PDFs?

And if so, how? That is, how can I create a PDF with multiple charts, and where each chart gets its own page? (Note the one chart per page requirement disqualifies http://www.highcharts.com/docs/frequently-asked-questions#export-multiple).
This is similar to Highcharts: converting multiple charts at once using phantomjs, which hasn't gotten answered that I could see. To reiterate: I strongly prefer an answer using highcharts-convert.js, not the export module. Thanks in advance.

How to determine event options?

I have a simple question that lead to a larger question. I have an OverlayPanel and have to guess what the "hideEvent" option is. The documentation doesn't give out that detail. I downloaded the source and have been filtering through that but so far have been unable to find any list.
Where can I find a list of what the available options are for a primefaces argument when it's not in the documentation?
It's any standard HTML DOM event, just part of basic HTML. You know, JSF is merely a HTML code generator.

Ruby on Rails Pie Chart Library?

Is there any library that can produce server-side pie charts using Ruby?
Such as this:
This provides easy integration to your rails app by just one line of ruby code. hope this could help to anybody..
https://github.com/ankane/chartkick
Yes, Gruff is pretty cool for this.
Google's javascript charting library is ok for simple tasks
http://code.google.com/apis/chart/
And there are a lot of gems that wrap GoogleCharts
http://googlecharts.rubyforge.org/
https://github.com/mattetti/googlecharts
EDIT: Didn't see the server side constraint. Ignore my answer :)
#bandito has given example of google javascript charting library. Well, there is Chart API from Google which sends back the required image, if you send the parameters in the API URL. See Image Charts. There is a specific section for pie charts there. I have used it once and found it very useful. Ofcourse there is loading time for the chart, and limitations to how far it is customizable, but for a simple pie chart like the one shown in figure, I think this is adequate.
See the getting started for understanding how the API works.
Also see Chart Wizard
For Rails, look at quacky-charts at https://github.com/ragingsquirrel3/quacky-charts
You can use rchart for plotting various chart.

Resources