没有找到合适的产品?
联系客服协助选型:023-68661681
提供3000多款全球软件/控件产品
针对软件研发的各个阶段提供专业培训与技术咨询
根据客户需求提供定制化的软件开发服务
全球知名设计软件,显著提升设计质量
打造以经营为中心,实现生产过程透明化管理
帮助企业合理产能分配,提高资源利用率
快速打造数字化生产线,实现全流程追溯
生产过程精准追溯,满足企业合规要求
以六西格玛为理论基础,实现产品质量全数字化管理
通过大屏电子看板,实现车间透明化管理
对设备进行全生命周期管理,提高设备综合利用率
实现设备数据的实时采集与监控
利用数字化技术提升油气勘探的效率和成功率
钻井计划优化、实时监控和风险评估
提供业务洞察与决策支持实现数据驱动决策
原创|使用教程|编辑:龚雪|2014-08-11 10:02:17.000|阅读 1206 次
概述:本文整理了10个Highcharts报错代码,涉及Highcharts的数轴值、数据量、图表渲染器、数据类型、数据排序、坐标轴等错误。
# 界面/图表报表/文档/IDE等千款热门软控件火热销售中 >>
我们在使用Highcharts的时候,常常会报错,小编整理了10个报错代码供大家参考查阅。
对数轴的值不能为 0 或负数
下述情况下会发生这个错误:
数据量超过
This error occurs if the series.data option contains object configurations and the number of points exceeds theturboThreshold. It can be fixed by either setting the turboThreshold option to a higher value, or changing your point configurations to numbers or arrays.
图表 div 渲染容器不存在
This error occurs if the chart.renderTo option is misconfigured so that Highcharts is unable to find the HTML element to render the chart in.
数据类型错误,需要的是Number类型,传入的却是String
This happens if you pass in a string as a data point, for example in a setup like this:
series: [{ data: ["3", "5", "1", "6"] }]
Highcharts expects the data values to be numbers. The most common reason for this is that data is parsed from CSV or from a XML source, and the implementer forgot to run parseFloat on the parsed value.
For performance reasons internal type casting is not performed, and only the first value is checked (since 2.3).
未排序的数据
This happens when you are trying to create a line series or a stock chart where the data is not sorted in ascending X order. For performance reasons, Highcharts does not sort the data, instead it is required that the implementer pre-sorts the data.
Highcharts 重复定义
This error happens the second time Highcharts or Highstock is loaded in the same page, so the Highchartsnamespace is already defined. Keep in mind that the Highcharts.Chart constructor and all features of Highcharts are included in Highstock, so if you are running Chart and StockChart in combination, you only need to load the highstock.js file.
指定的数据列类型不存在
This error happens when you are setting chart.type or series.type to a series type that isn't defined in Highcharts. A typical reason may be that your are missing the extension file where the series type is defined, for example in order to run an arearange series you need to load the highcharts-more.js file.
指定的数轴不存在
This error happens when you set a series' xAxis or yAxis property to point to an axis that does not exist.
坐标轴间隔过多
This error happens when you try to apply too many ticks to an axis, specifically when you add more ticks than the axis pixel length. In practice, it doesn't make sense to add ticks so densely that they can't be distinguished from each other. One cause of the error may be that you set a tickInterval that is too small for the data value range. In general,tickPixelInterval is a better option, as it will handle this automatically. Another case is if you try to set categories on a datetime axis, which will result in Highcharts trying to add one tick on every millisecond since 1970.
不能为长数据添加对象配置
In Highstock, if you try to add a point using the object literal configuration syntax, it works only when the number of data points is below the series' turboThreshold. Instead of the object syntax, use the Array syntax.
本站文章除注明转载外,均为本站原创或翻译。欢迎任何形式的转载,但请务必注明出处、不得修改原文相关链接,如果存在内容上的异议请邮件反馈至chenjj@evget.com
DAE (数字资产交换)文件格式在 3D 软件中得到了良好的支持,但OBJ文件格式的兼容性和可靠性更高。本教程旨在借助Aspose.3D使用 C# 编程将 DAE 文件自动转换为 OBJ 文件。
在本篇教程中,我们将演示如何借助Aspose.3D for .NET,通过几行代码在 C# 中构建OBJ到U3D 的转换器。
本文主要介绍DevExpress WPF Grid控件如何进行绑定数据操作,欢迎下载最新版组件体验!
将数据库数据导出为 Excel 文件,也因此成为实现报表生成、审计追踪、数据迁移和临时分析等需求时的一种高频操作。本文将介绍如何使用 Spire.XLS for .NET 通过 C# 将数据库记录高效导出到 Excel 文件。示例以 SQL Server 数据库为基础,但相同方法也适用于 SQLite、MySQL、Oracle 等其他关系型数据库,只需调整连接方式即可。
纯JavaScript编写的开源股票图表控件
Highcharts纯JavaScript编写的开源图表库,为你的Web应用程序提供直观的、交互式图表
Highmaps一个基于web项目创建地图的HTML5/JavaScript地图组件
服务电话
重庆/ 023-68661681
华东/ 13452821722
华南/ 18100878085
华北/ 17347785263
客户支持
技术支持咨询服务
服务热线:400-700-1020
邮箱:sales@evget.com
关注我们
地址 : 重庆市九龙坡区火炬大道69号6幢
慧都科技 版权所有 Copyright 2003-
2025 渝ICP备12000582号-13 渝公网安备
50010702500608号