Skip to content

Commit

Permalink
Utils and samples maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
TorsteinHonsi committed Apr 9, 2015
1 parent c9ef901 commit af43c97
Show file tree
Hide file tree
Showing 9 changed files with 73 additions and 29 deletions.
4 changes: 0 additions & 4 deletions samples/highcharts/issues/2466/demo.html

This file was deleted.

20 changes: 0 additions & 20 deletions samples/highcharts/issues/2466/demo.js

This file was deleted.

1 change: 1 addition & 0 deletions samples/highcharts/issues/2651/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ $(function () {
'Jun asdkjfasd afkjs dfa'
],
labels: {
autoRotationLimit: 60,
style: {
fontSize: '0.8em'
}
Expand Down
2 changes: 1 addition & 1 deletion samples/highcharts/members/renderer-text-on-chart/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $(function () {

}, function (chart) { // on complete

chart.renderer.text('Series 1', 140, 150)
chart.renderer.text('Series 1', 140, 140)
.attr({
rotation: -25
})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Highcharts Demo
name: Highcharts Stock Demo
authors:
- Torstein Hønsi
...
...
4 changes: 4 additions & 0 deletions samples/stock/rangeselector/datagrouping/demo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<div id="container" style="height: 400px; min-width: 600px; max-width: 800px; margin: 0 auto"></div>

<script src="http://code.highcharts.com/stock/highstock.js"></script>
<script src="http://code.highcharts.com/stock/modules/exporting.js"></script>
63 changes: 63 additions & 0 deletions samples/stock/rangeselector/datagrouping/demo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
$(function () {

$.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=aapl-c.json&callback=?', function (data) {
// Create the chart
$('#container').highcharts('StockChart', {

rangeSelector : {
allButtonsEnabled: true,
buttons: [{
type: 'month',
count: 3,
text: 'Day',
dataGrouping: {
forced: true,
units: [['day', [1]]]
}
}, {
type: 'year',
count: 1,
text: 'Week',
dataGrouping: {
forced: true,
units: [['week', [1]]]
}
}, {
type: 'all',
text: 'Month',
dataGrouping: {
forced: true,
units: [['month', [1]]]
}
}],
buttonTheme: {
width: 60
},
selected: 2
},

title : {
text : 'AAPL Stock Price'
},

subtitle: {
text: 'Custom data grouping tied to range selector'
},

series : [{
name : 'AAPL',
data : data,
marker: {
enabled: null, // auto
radius: 3,
lineWidth: 1,
lineColor: '#FFFFFF'
},
tooltip: {
valueDecimals: 2
}
}]
});
});

});
2 changes: 1 addition & 1 deletion utils/samples/compare-comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
$compare = json_decode(file_get_contents('temp/compare.json'));
$path = $_GET['path'];
$diff = $_GET['diff'];
$focus = $_GET['focus'] === 'false' ? false : true;
$focus = @$_GET['focus'] === 'false' ? false : true;
$i = $_GET['i'];
$updateContents = false;

Expand Down
2 changes: 1 addition & 1 deletion utils/samples/compare-view.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
$comment = @$compare->$path->comment;


$isUnitTest = strstr(file_get_contents("../../samples/$path/demo.details"), 'qunit') ? true : false;
$isUnitTest = strstr(@file_get_contents("../../samples/$path/demo.details"), 'qunit') ? true : false;

$browser = getBrowser();
$browserKey = $browser['parent'];
Expand Down

0 comments on commit af43c97

Please sign in to comment.