ronan-gloo / codeigniter-highcharts-library Goto Github PK
View Code? Open in Web Editor NEWHighcharts library for codeigniter
Highcharts library for codeigniter
the way function active_record
display chart with template (second chart) have a bug. I try to change the code like this :
function _data()
{
$data['users']['data'] = array(536564837, 0, 153309074, 99143700, 82548200);
$data['users']['name'] = 'Users by Language';
$data['popul']['data'] = array(1277528133, 0, 420469703, 126804433, 250372925);
$data['popul']['name'] = 'World Population';
$data['axis']['categories'] = array('English', 'Chinese', 'Spanish', 'Japanese', 'Portuguese');
return $data;
}
i change the second value into '0', and this is what i get :
'0' value didnt show, and displaying categories suppose to be 5, not 4.
How I can display two Y Axes in one graph?
I want to show something like this:
Hello,
i want to show the real time live data that fetched from db (My DB data is keep on inserting )
I have 5 table 't1,t2,t5,t4,t5' . This will get updated in each sec or two .
So i want to show the total data in each table using line graph .How can i do this ???
How can I use a Range Selector (https://www.highcharts.com/docs/chart-concepts/range-selector) and how to enable datalabels in a bar chart
As here in js?
PlotOptions: {
Column: {
Stacking: 'normal',
DataLabels: {
Enabled: true,
Color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'White'
}
}
},
thank you!!
Mauro
Line 34 if libraries/highcharts.php:
"enable" should be "enabled"
'credits' => array(
'enabled'=> true,
'text' => 'test',
'href' => ''
),
Im sure template function have bugs.
$this->highcharts->set_serie_options(array('type' => 'spline'), 'Another description');
In case you need to pass null values to generate non linear data rows, you can't since the class simply discards empty or null values.
This is the fix for the moment: [file:application/library/highcharts.php:343]
public function push_serie_data($value = '', $serie_name = ''){
if ($serie_name AND $value)
{
$index = $this->find_serie_name($serie_name);
$value = (is_numeric($value)) ? (float)$value : $value;
$this->opts['series'][$index]['data'][] = $value;
} else {
if($value===NULL) {
$index = $this->find_serie_name($serie_name);
$value = null;
$this->opts['series'][$index]['data'][] = $value;
}
}
return $this;
}
Hi im wondering how would you use the JSON output you created on the library.
Im trying to use this JSON to create and populate the chart using just javascript & getJSON
Can't use accented characters for labels or titles, for example using letter "é" I got "u009C" rendered. Using a jsfiddle example of highchart, entering there letter "é", renders well.
how to use highchart's dataLabel formatter ?
using following syntax I get two $ char before and at the end of the function:
..
array = ('formatter' => "function() { return this.y }")
in html source code:
"formatter":"$$function() { return this.y }$$"
I get no errors but the formatter doesn't seems to work
thanks
I would like to create driilldown chart. Is it possible with this library?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.