Comments (7)
Hi,
Take a look at the example controller. $this->highcharts->get() returns an array with two keys, ['global'] to set an global config for your charts, and ['local'] containing an array of json strings for individual charts.
ie:
<script> var preferences = $.parseJSON(''); var firstChart = $.parseJSON(''); </script>from codeigniter-highcharts-library.
If you want to create a pie, you'll need to set type like this:
$this->highcharts->set_type('pie');
from codeigniter-highcharts-library.
Sure... thats obviously.
I have problems setting de values for the pie.
Cant get it to show the correct value and label
from codeigniter-highcharts-library.
Is it possible that there is a problem when generating the JSON for the pie?
I compared the JSON generated and the one that uses in highcharts examples and the variables are different. Could you show an example of using pie with values and labels?
from codeigniter-highcharts-library.
well, try this code, it should generate a pie: https://gist.github.com/813436
Maybe you're trying to make callback functions, something that can't be send through json_encode(). It will be an interesting feature to add to the library.
from codeigniter-highcharts-library.
I cant understand how i didn't tried that... I tried almost every combination possible to get pie to work :P
Thanks for the hard work on top this library ;)
from codeigniter-highcharts-library.
Question not related but... Is there any easy way to convert a pie chart into column chart with same data?
Thanks ;)
from codeigniter-highcharts-library.
Related Issues (11)
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 codeigniter-highcharts-library.