Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Charts ChartIQ addSeries叠加_Charts - Fatal编程技术网

Charts ChartIQ addSeries叠加

Charts ChartIQ addSeries叠加,charts,Charts,在ChartIQ中,是否可以将添加了addSeries的系列显示为图表顶部的覆盖,就像addStudy方法搜索覆盖一样 我正在使用STX.Renderer.histogram渲染直方图,它显示在prices mountain chart后面。如果在params中省略isComparison标志,则序列应显示为覆盖。如果希望序列和图表共享相同的y轴,则值在相同的范围内,然后将shareYAxis标志设置为true。这将最接近使用一个系列,就好像它是一项研究。试试这个小提琴: 它通过设置overCh

在ChartIQ中,是否可以将添加了addSeries的系列显示为图表顶部的覆盖,就像addStudy方法搜索覆盖一样


我正在使用STX.Renderer.histogram渲染直方图,它显示在prices mountain chart后面。

如果在params中省略isComparison标志,则序列应显示为覆盖。如果希望序列和图表共享相同的y轴,则值在相同的范围内,然后将shareYAxis标志设置为true。这将最接近使用一个系列,就好像它是一项研究。

试试这个小提琴:

它通过设置overChart:true呈现山形图,然后在其上绘制直方图

像这样:

// create your histogram renderer
var histRenderer = stxx.setSeriesRenderer(new STX.Renderer.Histogram({
  params: {
    type: "histogram",
    subtype: "stacked",
    heightPercentage: .3, // how high to go. 1 = 100%
    opacity: 1, // only needed if supporting IE8, otherwise can use rgba values in histMap instead
    widthFactor: .8, // to control space between bars. 1 = no space in between
    yAxis: axis,    // separate axis
    overChart: true // <<<<<=== if omitted the histogram will be drawn under the main chart.
  },
  callback: histogramLegend
}));

我省略了该标志,它不会显示为覆盖。我只使用addSeries中的显示和数据作为选项。您可以发布用于调用addSeries的代码吗?您还需要至少包含一种颜色。在此处发布代码,可能需要在本地使用它,它无法识别STX.renderer.histogram,因为某些原因,您缺少定义构造函数的stxLibrary.js include。您对stxx.newChart ticker的第一个参数似乎也未定义。您好,主要问题是您的数据数组顺序相反。studyData.reverse应该可以解决这个问题。不透明度:1是所需的。不透明度:1只生成纯色,因此它看起来可能在山形图上…但真正的过度渲染:true是使它在顶部渲染的原因。