- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个混合图表,带有顶部放置的值框。除了第一个值之外,所有值的背景色都从值框中消失了。这以前工作正常,因为白色背景出现在所有值框后面,并且代码没有更改,所以我不知道为什么背景颜色突然消失了。下面是我的代码显示问题。任何有关如何解决此问题的帮助或指导将不胜感激。
var maxYValue = 60;
var value1 = 40;
var value2 = 15;
var value3 = 34;
var value4 = 14;
var value5 = 20;
var zones = {
"type": "mixed",
"font-family": "proxima_nova_rgregular",
"title": {
"text": "MINUTES IN ZONES",
"font-family": "proxima_nova_rgregular",
"background-color": "none",
"font-color": "#39393d",
"font-size": "22px",
"adjustLayout": true
},
"plot": {
"borderRadius": "5px 5px 0 0",
"bar-width": '50%',
"animation": {
"delay": 300,
"effect": 11,
"speed": "500",
"method": "0",
"sequence": "3",
"z-index": 2
},
"value-box": {
"placement": "top-out",
"text": "%v",
"decimals": 0,
"font-color": "#35353b",
"font-size": "14px",
"alpha": 1,
"background-color": "#ffffff",
"padding": "5px 5px 0px 5px",
"shadow": false,
"z-index": 4
}
},
"plotarea": {
"border-left": "3px solid #39393d",
"border-bottom": "3px solid #39393d",
"padding-left": "3px",
"margin": "dynamic",
"background-color": "none"
},
"tooltip": {
"visible": false
},
"scale-x": {
"placement": "opposite",
"labels":["Zone 1","Zone 2","Zone 3","Zone 4","Zone 5"],
"line-width": 0,
"tick": {
"visible": false
},
"guide": {
"visible": false
},
"item": {
"offsetY": 25,
"font-size": 12,
"fontColor": 'black',
"bold": true
},
},
"scale-y": {
"offsetEnd": 45,
"max-value": maxYValue,
"visible": false,
"line-width": 0,
"guide": {
"visible": false
}
},
"series": [
{
"type": "bar",
"values": [
value1, value2, value3, value4, value5
],
"background-color": "#cdcccc",
"z-index": 2,
"styles": ['#cdcccc', '#71cbdc', '#8cc541', '#d96c27', '#ea2629']
},
{
"type": "line",
"line-color": "gray",
"marker": {
"backgroundColor":"white",
"borderWidth": 2,
"border-color": "#35353b",
"visible": false,
"rules":[
{
"rule":" %node-index%3 == 1 ",
"visible": true,
"size": 7,
"offset-y": -15
}
]
},
"value-box": {
"visible": 0
},
"values": [
[0, value1 + 2],
[0, maxYValue],
[0, null],
[1, value2 + 2],
[1, maxYValue],
[1, null],
[2, value3 + 2],
[2, maxYValue],
[2, null],
[3, value4 + 2],
[3, maxYValue],
[3, null],
[4, value5 + 2],
[4, maxYValue],
[4, null],
]
}
]
}
zingchart.render({
id : 'zones',
data : zones,
height: "320",
width: "100%",
output : 'canvas'
});
<script src="https://cdn.zingchart.com/2.5.2/zingchart.min.js"></script>
<div class="ctabprcci-chart zone-chart" id="zones"></div>
最佳答案
鉴于今天发布了新的 ZingChart (v2.6.0),我们插入了您的 Canvas 更改。感谢您的耐心和成为 ZingChart 团队的一员。
Changelog here
demo here
关于zingchart - 值框背景消失了,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42796624/
我有一个网格样式的饼图(同一网格中有多个饼图),类似于 http://www.zingchart.com/docs/chart-types/pie/#pie__trellis_chart .我使用的代
(我以前问过一次类似的问题,但这个问题又出现了。) 我使用 ZingCharts 制作了一个非常简单的饼图,但即使 ZingCharts 网站上的所有示例都显示了每个切片的百分比,我也无法显示要显示的
我们使用套接字库从我们的服务中下载数据。我正在执行以下操作,将这些数据发送到 zingchart(数据按摩后): myChart.series[0].values.push([xVal, yVal])
在此页面上:http://www.zingchart.com/docs/chart-types/pie/ 许多示例饼图显示每个切片的百分比。但我无法重现这个。如何显示每个切片的百分比。请注意,我还将单
我正在尝试使用 ZingChart 创建多维堆叠条形图。据我所知: 由于某种原因,图像没有显示。它的链接是 ( https://drive.google.com/file/d/0B14IyWv9zwZ
需要绘制一个完全响应且视觉准确的 zingchart。据我所知,我们需要为要在其中绘制 zingchart 的 div 提供以 % 为单位的高度和宽度(例如:100% 或 80%)。在编写 zingc
我想使用 ZingChart 为 x 和 y 轴添加标题。例如,如果我的 x 轴显示年份(2010、2011、2012 等),我希望标题“会计年度”显示在每个年份标签下方 同样,如果我在 y 轴上测量
我想知道是否有任何方法可以在渲染图形后动态添加 scale-x 标记,也许是通过像这样的函数: zingchart.exec('myChart', 'addscalexmarker', { t
我有一个混合图表,带有顶部放置的值框。除了第一个值之外,所有值的背景色都从值框中消失了。这以前工作正常,因为白色背景出现在所有值框后面,并且代码没有更改,所以我不知道为什么背景颜色突然消失了。下面是我
是否可以在zingchart中画一 strip 边框的线? 我有一个 "type" : "line", "values" : [something], "line-color": "#some
我有一个包含多个饼图的视觉效果(我有一个包含多个单独饼图的图形集)。我希望每个饼图的大小能够反射(reflect)每个饼中数据的大小。例如,显示 2010 年收入为 1,000,000 美元的饼图将小
我正在使用向下钻取饼图向下钻取到节点的子节点等。问题是在某些时候,子节点不包含任何数据。有没有一种方法可以在图表内显示一条消息或类似的东西,而不是一个白色区域(因为没有系列数据)来通知用户没有更多的数
我需要在我的图表上添加一些额外的标签,所以我使用了形状。结果如下: http://jsfiddle.net/z3n3qobm/91/ 但我需要将示例中的圆圈与 X 轴的标签对齐。图表必须是响应式的
html file in controller.js $scope.myObj = { "type": "bar", "utc": true, "plotarea":{ "m
每当我以百分比设置 ZingChart 的高度和宽度以使其与所有屏幕尺寸兼容时,它都不起作用。 示例:如果我设置 1% 的高度和 1% 的宽度,则不会发生这种情况。 我将高度和宽度更改为: zingc
因此,我被要求向使用 ZingChart 构建的条形图添加额外的标签层。我们基本上有一个单系列柱状图,用于绘制子类别内特定类别的标准评级。 目前子类别在图表中根本没有作用,因为我绘制了类别中每个标准的
这是我正在尝试做的一个例子: http://jsfiddle.net/4pb8uzt8/13/ $scope.myJson = { 'plot': { 'styles': ['#fff
我想创建一个从 MySQL 数据库中提取的值的静态图表。图表格式为(x 轴:dd/mm/yy hh:mm:ss(对应于 mysql 数据库的时间戳)),y 轴为 double 值。我能够从 MySql
我不确定在 html 页面中将以下 zingchart click 事件处理代码放在哪里。 zingchart.click = 函数(dataStr){ var data = eval('(' + d
我正在尝试提取通过 CFCHART 生成的 zingchart 的 SVG 内容并将其传递给我的服务器以将 SVG 转换为 PNG $('#downloadGraph').click(function
我是一名优秀的程序员,十分优秀!