Giter VIP home page Giter VIP logo

Comments (7)

ronan-gloo avatar ronan-gloo commented on June 26, 2024

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.

ronan-gloo avatar ronan-gloo commented on June 26, 2024

If you want to create a pie, you'll need to set type like this:
$this->highcharts->set_type('pie');

from codeigniter-highcharts-library.

sbehrends avatar sbehrends commented on June 26, 2024

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.

sbehrends avatar sbehrends commented on June 26, 2024

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.

ronan-gloo avatar ronan-gloo commented on June 26, 2024

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.

sbehrends avatar sbehrends commented on June 26, 2024

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.

sbehrends avatar sbehrends commented on June 26, 2024

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 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.