ZhangLazarus Posted June 13, 2014 Posted June 13, 2014 unigui_highcharts_Demo.rar highcharts is free & open source http://www.hcharts.cn/demo/index.php http://www.highcharts.com/demo 1)make Html file Unigui Form's DataSet Make Html File (For example: chart.html or chart.htm). and Save To UniguiServer's Directory(For example: examples or files or temp). 2)show chart unigui form add TUniURLFrame,Set TUniURLFrame.Url=\UniguiServer's Directory\html File (For example: \examples\Chart.html). 3 Quote
Sherzod Posted June 13, 2014 Posted June 13, 2014 Hi SohoSoftWare. +1 * FREE FOR NON-COMMERCIAL Do you want to use Highcharts for a personal website, a school site or a non-profit organisation? Then you don't need our permission, just go on! http://www.highcharts.com/license Anyway thanks for sharing... Quote
Administrators Farshad Mohajeri Posted June 13, 2014 Administrators Posted June 13, 2014 highcharts is free & open source http://www.hcharts.cn/demo/index.php http://www.highcharts.com/demo Have you integrated it in a uniGUI project? If yes, please send a sample project. Quote
Sherzod Posted June 13, 2014 Posted June 13, 2014 Here is my example of integration, (need jquery). How to use? 1. Download "jquery" from here "http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" and copy to the directory "/files/". 2. For this example, you need to download some files: 2.1. http://code.highcharts.com/highcharts.js 2.2. http://code.highcharts.com/highcharts-3d.js 2.3. http://code.highcharts.com/modules/exporting.js they also need to copy to the folder "files" 3. Add CustomFiles in UniServerModule: files/jquery.min.js files/highcharts.js files/highcharts-3d.js files/exporting.js 4. Add CustomCSS in UniServerModule: #container, #sliders { min-width: 310px; max-width: 800px; margin: 0 auto; } #container { height: 400px; } 5. Add "HTMLFrame1" 6. HTMLFrame1.HTML <div id="container"></div> <div id="sliders"> <table> <tr><td>Alpha Angle</td><td><input id="R0" type="range" min="0" max="45" value="15"/> <span id="R0-value" class="value"></span></td></tr> <tr><td>Beta Angle</td><td><input id="R1" type="range" min="0" max="45" value="15"/> <span id="R1-value" class="value"></span></td></tr> </table> </div> 7. HTMLFrame1.AfterScript $(function () { // Set up the chart var chart = new Highcharts.Chart({ chart: { renderTo: 'container', type: 'column', margin: 75, options3d: { enabled: true, alpha: 15, beta: 15, depth: 50, viewDistance: 25 } }, title: { text: 'Chart rotation demo' }, subtitle: { text: 'Test options by dragging the sliders below' }, plotOptions: { column: { depth: 25 } }, series: [{ data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4] }] }); // Activate the sliders $('#R0').on('change', function(){ chart.options.chart.options3d.alpha = this.value; showValues(); chart.redraw(false); }); $('#R1').on('change', function(){ chart.options.chart.options3d.beta = this.value; showValues(); chart.redraw(false); }); function showValues() { $('#R0-value').html(chart.options.chart.options3d.alpha); $('#R1-value').html(chart.options.chart.options3d.beta); } showValues(); }); source: http://www.highcharts.com/demo/3d-column-interactive demo: http://jsfiddle.net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/3d-column-interactive/ Sincerely. 1 Quote
Schlingel Posted June 13, 2014 Posted June 13, 2014 Hello I work a few month with Highcharts/highstock -> no problems, work without know restrictions last prototyp(not finished): [click on Show chart] http://schlingel.no-ip.info/Motorcycle/Engine_data.dll Schlingel 1 Quote
mmurgas Posted June 23, 2016 Posted June 23, 2016 hello .... how do to fill graphics from a database? Thanks Quote
aGaVVa Posted August 14, 2017 Posted August 14, 2017 How to dynamic add to chart series from main program (VCL)? How to use series.addPoint([x, y]) from main program (VCL)? Quote
SayeyeZohor Posted July 11, 2018 Posted July 11, 2018 Here is my example of integration, (need jquery). chart.png How to use? 1. Download "jquery" from here "http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" and copy to the directory "/files/". 2. For this example, you need to download some files: 2.1. http://code.highcharts.com/highcharts.js 2.2. http://code.highcharts.com/highcharts-3d.js 2.3. http://code.highcharts.com/modules/exporting.js they also need to copy to the folder "files" 3. Add CustomFiles in UniServerModule: files/jquery.min.js files/highcharts.js files/highcharts-3d.js files/exporting.js 4. Add CustomCSS in UniServerModule: #container, #sliders { min-width: 310px; max-width: 800px; margin: 0 auto; } #container { height: 400px; } 5. Add "HTMLFrame1" 6. HTMLFrame1.HTML <div id="container"></div> <div id="sliders"> <table> <tr><td>Alpha Angle</td><td><input id="R0" type="range" min="0" max="45" value="15"/> <span id="R0-value" class="value"></span></td></tr> <tr><td>Beta Angle</td><td><input id="R1" type="range" min="0" max="45" value="15"/> <span id="R1-value" class="value"></span></td></tr> </table> </div> 7. HTMLFrame1.AfterScript $(function () { // Set up the chart var chart = new Highcharts.Chart({ chart: { renderTo: 'container', type: 'column', margin: 75, options3d: { enabled: true, alpha: 15, beta: 15, depth: 50, viewDistance: 25 } }, title: { text: 'Chart rotation demo' }, subtitle: { text: 'Test options by dragging the sliders below' }, plotOptions: { column: { depth: 25 } }, series: [{ data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4] }] }); // Activate the sliders $('#R0').on('change', function(){ chart.options.chart.options3d.alpha = this.value; showValues(); chart.redraw(false); }); $('#R1').on('change', function(){ chart.options.chart.options3d.beta = this.value; showValues(); chart.redraw(false); }); function showValues() { $('#R0-value').html(chart.options.chart.options3d.alpha); $('#R1-value').html(chart.options.chart.options3d.beta); } showValues(); }); source: http://www.highcharts.com/demo/3d-column-interactive demo: http://jsfiddle.net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/3d-column-interactive/ Sincerely. hi thanks for this post please upload unigui demo ... not working ... Quote
Sherzod Posted July 11, 2018 Posted July 11, 2018 Hi, hi thanks for this postplease upload unigui demo ...not working ... I just gave a sequence of actions to make it work, there were no attached demos (only in the first post) And, can you please specify which edition and build of UniGUI are you using?! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.