- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
<分区>
Google 的图表 API 支持 candlestick chart能够更改 X 轴上的值 - 即这里是工作日,但也可以是其他值。
但是,据我所知,此图表 API 不允许您更改“灯芯”的线宽,并且不可能反转轴以使 0 位于顶部(除非您切换到使用所有负值)。
Highcharts 有更多 full featured candlestick chart以及反转 y 轴的能力,但据我所知,必须使用时间戳作为 x 轴的值。
我可以使用什么工具来创建具有倒置 Y 轴的 HTML5 烛台图表,并能够在 X 轴上设置自定义标签,并且可能还有调整“灯芯”厚度的选项?
(这很困惑 - 来源在这里 http://jsfiddle.net/FSEQP/ )
<html>
<head>
</head>
<body>
<div id="jqChart" style="width: 800px; height: 550px;" />
</body>
</html>
function round(d) {
return Math.round(100 * d) / 100;
}
var data = [];
var date = new Date(2010, 0, 1);
var high = Math.random() * 40;
var close = high - Math.random();
var low = close - Math.random();
var open = (high - low) * Math.random() + low;
data.push([date, round(high), round(low), round(open), round(close)]);
for (var day = 2; day <= 12; day++) {
date = new Date(2010, 0, day);
high = open + Math.random();
close = high - Math.random();
low = close - Math.random();
var oldOpen = open;
open = (high - low) * Math.random() + low;
if (low > oldOpen) {
low = oldOpen;
}
data.push([date, round(high), round(low), round(open), round(close)]);
}
$(document).ready(function () {
$('#jqChart').jqChart({
title: { text: 'Candlestick Chart' },
legend: { visible: false },
// labelsOptions : { visible: false },
axes: [
{
type: 'linear',
location: 'left',
reversed: true
},
{
type: 'category',
location: 'bottom',
categories: [
'Category 1', 'Category 2', 'Category 3',
'Category 4', 'Category 5', 'Category 6',
'Category 7', 'Category 8', 'Category 9',
'Category 10', 'Category 11', 'Category 12'
],
labels: {
font: '12px sans-serif',
angle: -90,
}
}
],
series: [
{
type: 'column',
data: data
}
]
});
});
在我看来,这似乎是一件非常微不足道的事情,我让它在 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
我是一名优秀的程序员,十分优秀!