- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如何更改 Google Charts Api 中烛台后面的柱线?
candlestick:{fallingColor:{fill:"red", strokeWidth:0.5,stroke:'black'},
risingColor:{fill:"yellowgreen",strokeWidth:0.5,stroke:'black'}}}
stroke
选项改变方框的颜色,但不改变后面的棍子。我得到了黑框与绿色或红色和蓝色 stic 的这种奇怪的颜色组合。在 docs 中找不到它
最佳答案
colors
参数将修改“棒”的颜色。这指定了图表中每个系列的默认颜色。
例如将第一个系列的棒更改为红色,第二个系列的棒变为棕色:
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Mon', 20, 28, 38, 45],
['Tue', 31, 38, 55, 66],
['Wed', 50, 55, 77, 80],
['Thu', 77, 77, 66, 50],
['Fri', 68, 66, 22, 15]
// Treat first row as data as well.
], true);
var options = {
legend: 'none',
colors: ['red','brown'],
candlestick: {
fallingColor:{ fill: "orange", strokeWidth:0.5, stroke:'black'},
risingColor:{ fill: "yellowgreen", strokeWidth:0.5, stroke:'black'}
}
};
var chart = new google.visualization.CandlestickChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
关于javascript - 烛台后面的柱线颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25190508/
在我看来,这似乎是一件非常微不足道的事情,我让它在 Android 上运行,但在 iOS 上不起作用,即使在彻底阅读了之前的问题之后也是如此...... 无论如何,我只是想创建一个历史价格数据的组合图
下午好 我想看看你们中是否有人可以帮助我在几分钟内制作出蜡烛图。我设法在几天内将它们绘制成图表,但我不知道如何在几分钟内完成。 附加代码。 import numpy as np import matp
我目前正在制作类似于 this 的图表使用 Highcharts 根据我的观察,柱形和烛台图表仅当我将鼠标悬停在框本身上时才会触发mouseover,而折线 或面积 图表将在图表上的任何位置显示它们,
看了他们的documentation关于这方面的信息很少。 我基本上想在图表的开头和结尾显示一个完整的蜡烛图,而不是现有的半条柱(水平显示蜡烛条的一半)。我可以选择调整我的 JSON 数据并添加一个假
我看过 docs for combo charts并且能够将带有一条线的条形图重现为不同的系列。但是,我如何获得带有不同系列线条的烛台图表? 当我尝试时,出现错误 Last domain does n
我正在尝试使用 Matplotlib 绘制烛台图表,其中包含我为 REST API 调用获取的数据。但是,由于调用使用了唯一的访问 token ,我已经下载了示例数据并将其加载到 csv 中以解决此问
我需要每 5 分钟绘制一次交易数据(一根蜡烛) 这是我目前所拥有的: from matplotlib.finance import candlestick2_ohlc fig, ax = plt.su
我是一名优秀的程序员,十分优秀!