简体   繁体   English

高图:实心阴影

[英]Highcharts: Solidgauge Shadows

In the Highcharts API, they have have 'shadow' listed as a property for solidgauge plotOptions as well as for solidgauge series , but in neither case does it appear to make any difference. 在Highcharts API中,他们已将“阴影”列为solidgauge plotOptions和solidgauge 系列的属性,但在任何情况下似乎都没有任何区别。 Working in my own project and on the Highcharts jsfiddle demo it just doesn't seem to do anything if I set it to true or assign an object with specific properties. 在我自己的项目中以及在Highcharts jsfiddle演示中工作,如果将其设置为true或分配具有特定属性的对象,它似乎什么都不做。 Am I doing something wrong or is this just the way it is? 我是在做错什么,还是只是这样?

It seems to be a bug - I reported it here: https://github.com/highcharts/highcharts/issues/7512 这似乎是一个错误-我在这里报告了它: https//github.com/highcharts/highcharts/issues/7512

As a workaround you can apply SVG defs pattern like in this live demo : http://jsfiddle.net/kkulig/ckLmz931/ 作为解决方法,您可以像在此实时演示中一样应用SVG defs模式: http : //jsfiddle.net/kkulig/ckLmz931/

JS: JS:

  defs: {
    glow: {
      tagName: 'filter',
      id: 'shadow',
      opacity: 1,
      children: [{
        tagName: 'feGaussianBlur',
        result: 'coloredBlur',
        stdDeviation: 5
      }, {
        tagName: 'feMerge',
        children: [{
          tagName: 'feMergeNode',
          in : 'coloredBlur'
        }, {
          tagName: 'feMergeNode',
          in : 'SourceGraphic'
        }]
      }]
    }
  }

CSS 的CSS

@import 'https://code.highcharts.com/css/highcharts.css';

.highcharts-point {
    filter: url(#shadow);
}

Docs demo about defs : https://www.highcharts.com/docs/chart-design-and-style/gradients-shadows-and-patterns 有关defs文档演示: https : //www.highcharts.com/docs/chart-design-and-style/gradients-shadows-and-patterns

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM