2013-05-13 50 views
0

标记在highcharts符合图表类型成为无形标记变得不可见时highcharts线图负值负值

我的小提琴是:http://jsfiddle.net/TnTsr/542/

我曾试图改变剧情选项,但它似乎像剧情选项中没有错误。

先感谢

{ 
    "chart": { 
    "renderTo": "container", 
    "reportCode": "container", 
    "defaultSeriesType": "line", 
    "events": { 

    } 
    }, 
    "title": { 
    "text": null, 
    "style": { 
     "fontSize": "11px", 
     "fontFamily": "Open Sans , sans-serif", 
     "fontWeight": "normal" 
    } 
    }, 
    "subtitle": { 
    "text": null, 
    "style": { 
     "fontSize": "11px", 
     "fontFamily": "Open Sans , sans-serif", 
     "fontWeight": "normal" 
    } 
    }, 
    "legend": { 
    "floating": false, 
    "enabled": false, 
    "itemStyle": { 
     "fontSize": "9px" 
    }, 
    "verticalAlign": "bottom", 
    "layout": "horizontal", 
    "align": "center", 
    "borderWidth": 0, 
    "symbolWidth": 9 
    }, 
    "xAxis": { 
    "categories": [ 
     "Glendale Adventist ", 
     "Simi Valley ", 
     "Feather River ", 
     "St Helena (Clearlake)", 
     "White Memorial ", 
     "Frank R Howard Memorial ", 
     "San Joaquin Comm ", 
     "St Helena ", 
     "Sonora Reg ", 
     "Ukiah Valley ", 
     "Central Valley General" 
    ], 
    "categoriesFullName": [ 
     "" 
    ], 
    "enabledCategoryAbbreviation": false, 
    "title": { 
     "text": "", 
     "style": { 
     "fontSize": "12px", 
     "fontFamily": "Open Sans , sans-serif", 
     "color": "black", 
     "fontWeight": "normal" 
     } 
    }, 
    "labels": { 
     "enabled": true, 
     "style": { 
     "fontSize": "10px", 
     "fontFamily": "Open Sans , sans-serif", 
     "fontWeight": "normal" 
     }, 
     "rotation": 315, 
     "align": "right" 
    } 
    }, 
    "yAxis": [ 
    { 
     "labels": { 
     "style": { 
      "fontSize": "12px", 
      "fontFamily": "Open Sans , sans-serif", 
      "fontWeight": "normal" 
     } 
     }, 
     "title": { 
     "text": "CS-ALOS GAP", 
     "tooltip": "At DRG Level CS-ALOS Gap = (Facility CS-ALOS) -(Benchmark CS-ALOS). At Any Level above DRG CS-ALOS Gap = (Gap Days)/Discharges", 
     "style": { 
      "fontSize": "12px", 
      "fontFamily": "Open Sans , sans-serif", 
      "color": "#3E576F", 
      "fontWeight": "normal" 
     } 
     }, 
     "opposite": false, 
     "plotLines": [ 

     ], 
     "plotBands": [ 

     ] 
    } 
    ], 
    "tooltip": { 
    "shared": false, 
    "borderWidth": "0", 
    "backgroundColor": "rgba(255,255,255,1)", 
    "style": { 
     "line-height": "18px", 
     "fontSize": "10px", 
     "fontFamily": "Open Sans , sans-serif", 
     "color": "#1A5488", 
     "padding": "8px" 
    }, 
    "Color": "#1A5488", 
    "borderRadius": "3", 
    "shadow": "false", 
    "borderColor": "rgba(48,132,201,1)", 
    "padding": "5", 
    "font-family": "arial", 
    "font-size": "10", 
    "z-index": "10" 
    }, 
    "credits": { 
    "enabled": false 
    }, 
    "plotOptions": { 
    "column": { 
     "dataLabels": { 

     }, 
     "pointPadding": "0.01", 
     "groupPadding": "0.09", 
     "borderColor": "black", 
     "borderWidth": 1, 
     "shadow": false 
    }, 
    "bar": { 
     "dataLabels": { 

     }, 
     "pointPadding": "0.01", 
     "groupPadding": "0.09", 
     "borderColor": "black", 
     "borderWidth": 1, 
     "shadow": false 
    }, 
    "scatter": { 
     "marker": { 
     "radius": 9 
     } 
    }, 
    "pie": { 
     "allowPointSelect": true, 
     "cursor": "pointer", 
     "dataLabels": { 
     "enabled": true, 
     "color": "#000000", 
     "connectorColor": "#000000" 
     } 
    }, 
    "series": { 
     "groupPadding": "0.04" 
    } 
    }, 
    "series": [ 
    { 
     "name": "Hospitals", 
     "type": "line", 
     "yAxis": 0, 
     "index": 0, 
     "isAdditionalYAxisSeries": false, 
     "color": "#0833ff", 
     "data": [ 
     { 
      "customTooltip": [ 

      ], 
      "y": 1.12, 
      "dataElementValue": "Glendale Adventist ", 
      "dataElementName": "Hospitals", 
      "columnStacking": false, 
      "color": "#0833ff", 
      "isPointColor": true, 
      "isSeriesColor": true, 
      "colorIndex": "0" 
     }, 
     { 
      "customTooltip": [ 

      ], 
      "y": 0.99, 
      "dataElementValue": "Simi Valley ", 
      "dataElementName": "Hospitals", 
      "columnStacking": false, 
      "color": "#0833ff", 
      "isPointColor": true, 
      "isSeriesColor": true, 
      "colorIndex": "0" 
     }, 
     { 
      "customTooltip": [ 

      ], 
      "y": 0.71, 
      "dataElementValue": "Feather River ", 
      "dataElementName": "Hospitals", 
      "columnStacking": false, 
      "color": "#0833ff", 
      "isPointColor": true, 
      "isSeriesColor": true, 
      "colorIndex": "0" 
     }, 
     { 
      "customTooltip": [ 

      ], 
      "y": 0.7, 
      "dataElementValue": "St Helena (Clearlake)", 
      "dataElementName": "Hospitals", 
      "columnStacking": false, 
      "color": "#0833ff", 
      "isPointColor": true, 
      "isSeriesColor": true, 
      "colorIndex": "0" 
     }, 
     { 
      "customTooltip": [ 

      ], 
      "y": 0.68, 
      "dataElementValue": "White Memorial ", 
      "dataElementName": "Hospitals", 
      "columnStacking": false, 
      "color": "#0833ff", 
      "isPointColor": true, 
      "isSeriesColor": true, 
      "colorIndex": "0" 
     }, 
     { 
      "customTooltip": [ 

      ], 
      "y": 0.49, 
      "dataElementValue": "Frank R Howard Memorial ", 
      "dataElementName": "Hospitals", 
      "columnStacking": false, 
      "color": "#0833ff", 
      "isPointColor": true, 
      "isSeriesColor": true, 
      "colorIndex": "0" 
     }, 
     { 
      "customTooltip": [ 

      ], 
      "y": 0.37, 
      "dataElementValue": "San Joaquin Comm ", 
      "dataElementName": "Hospitals", 
      "columnStacking": false, 
      "color": "#0833ff", 
      "isPointColor": true, 
      "isSeriesColor": true, 
      "colorIndex": "0" 
     }, 
     { 
      "customTooltip": [ 

      ], 
      "y": 0.36, 
      "dataElementValue": "St Helena ", 
      "dataElementName": "Hospitals", 
      "columnStacking": false, 
      "color": "#0833ff", 
      "isPointColor": true, 
      "isSeriesColor": true, 
      "colorIndex": "0" 
     }, 
     { 
      "customTooltip": [ 

      ], 
      "y": -0.05, 
      "dataElementValue": "Sonora Reg ", 
      "dataElementName": "Hospitals", 
      "columnStacking": false, 
      "color": "#0833ff", 
      "isPointColor": true, 
      "isSeriesColor": true, 
      "colorIndex": "0" 
     }, 
     { 
      "customTooltip": [ 

      ], 
      "y": -0.23, 
      "dataElementValue": "Ukiah Valley ", 
      "dataElementName": "Hospitals", 
      "columnStacking": false, 
      "color": "#0833ff", 
      "isPointColor": true, 
      "isSeriesColor": true, 
      "colorIndex": "0" 
     }, 
     { 
      "customTooltip": [ 

      ], 
      "y": -0.3, 
      "dataElementValue": "Central Valley General", 
      "dataElementName": "Hospitals", 
      "columnStacking": false, 
      "color": "#0833ff", 
      "isPointColor": true, 
      "isSeriesColor": true, 
      "colorIndex": "0" 
     } 
     ], 
     "colorIndex": "0" 
    } 
    ], 
    "exporting": { 
    "enabled": false 
    } 
} 

回答

0

这是已知的bug,已经解决了上master版本:http://jsfiddle.net/TnTsr/543/

+0

谢谢,但我已经解决了这个问题是在数据对象,我分配每个点的颜色,而不是分配颜色的点,我只是分配颜色系列。小提琴是:http://jsfiddle.net/TnTsr/545/ – 2013-05-14 07:23:40

+0

是的,这是真的,但每个点的颜色也应该工作:)如在主分支。 – 2013-05-14 09:22:40

+0

好的谢谢你的帮助我的朋友。 – 2013-05-17 10:42:52

0

谢谢,但我已经固定的,这个问题是数据对象,我被分配每个点一种颜色,而不是分配颜色的点,我只是给系列分配颜色。小提琴是:jsfiddle.net/TnTsr/545 -