Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- highcharts.src.js 2012-01-26 10:21:12.000000000 +0100
- +++ highcharts.src-2.1.9-charts.js 2012-01-26 10:28:20.000000000 +0100
- @@ -217,7 +217,11 @@
- // set the value
- if (defined(value)) {
- - elem[setAttribute](prop, value);
- + if (prop == "height" && value == 0) {
- + elem[setAttribute]("height", "0.0");
- + } else {
- + elem[setAttribute](prop, value);
- + }
- // get the value
- } else if (elem && elem.getAttribute) { // elem not defined when printing pie demo...
- @@ -1586,7 +1590,7 @@
- i,
- child,
- element = this.element,
- - nodeName = element.nodeName,
- + nodeName = element.nodeName.toLowerCase(),
- renderer = this.renderer,
- skipAttr,
- shadows = this.shadows,
- @@ -1679,6 +1683,7 @@
- .replace('shortdot', '1,1,')
- .replace('shortdash', '3,1,')
- .replace('longdash', '8,3,')
- + .replace('solid', '1,0,')
- .replace(/dot/g, '1,3,')
- .replace('dash', '4,3,')
- .replace(/,$/, '')
- @@ -1828,7 +1833,7 @@
- * @param {String} id
- */
- clip: function (clipRect) {
- - return this.attr('clip-path', 'url(' + this.renderer.url + '#' + clipRect.id + ')');
- + return this.attr('clip-path', 'url(' + '#' + clipRect.id + ')');
- },
- /**
- @@ -3203,7 +3208,7 @@
- skipAttr = true;
- // directly mapped to css
- - } else if (key === 'zIndex' || key === 'visibility') {
- + } else if (key === 'zIndex' || key === 'visibility' || key == 'antialias') {
- // issue 61 workaround
- if (docMode8 && key === 'visibility' && nodeName === 'DIV') {
- @@ -7082,6 +7087,16 @@
- // draw the line
- if (!simpleSymbol && itemOptions && itemOptions.lineWidth) {
- + if (series.chart.options.enumerate) {
- + legendSymbol = renderer.text(
- + "(" + (series.index + 1) + ")",
- + (symbolX = -(series.index < 9 ? 16 : 20) - symbolPadding),
- + (symbolY = 0)
- + ).attr({
- + zIndex: 3,
- + 'font-weight': 'bold'
- + }).add(legendGroup);
- + } else {
- var attrs = {
- 'stroke-width': itemOptions.lineWidth,
- zIndex: 2
- @@ -7100,6 +7115,7 @@
- .attr(attrs)
- .add(legendGroup);
- }
- + }
- // draw a simple symbol
- if (simpleSymbol) { // bar|pie|area|column
- @@ -8161,7 +8177,9 @@
- .attr({
- stroke: optionsChart.plotBorderColor,
- 'stroke-width': optionsChart.plotBorderWidth,
- - zIndex: 4
- + zIndex: 4,
- + 'shape-rendering': 'crispEdges',
- + antialias: "false"
- })
- .add();
- } else {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement