📜  jQWidgets jqxChart backgroundColor 属性

📅  最后修改于: 2022-05-13 01:55:54.065000             🧑  作者: Mango

jQWidgets jqxChart backgroundColor 属性

jQWidgets是一个 JavaScript 框架,用于为 PC 和移动设备制作基于 Web 的应用程序。它是一个非常强大和优化的框架,独立于平台,并且被广泛支持。 jqxChart是一个轻量级且功能强大的图表小部件,100% 用 javascript 编写。它提供了许多高级功能并支持三种不同的渲染技术——SVG、HTML5 Canvas 和 VML。

backgroundColor属性用于设置或返回 backgroundColor 属性。即该属性用于设置或返回背景颜色。它接受字符串类型值,默认值为白色。

句法:

设置backgroundColor属性:

$('Selector').jqxChart({ backgroundColor : string });

返回backgroundColor属性:

var backgroundColor = 
    $('Selector').jqxChart('backgroundColor');

链接文件:从给定链接下载 jQWidgets。在 HTML 文件中,找到下载文件夹中的脚本文件。

示例:下面的示例说明了 jQWidgets 中的 jqxChart backgroundColor属性:

HTML


  

    
    
    
    
    
    

  

    
        

            GeeksforGeeks         

        

jQWidgets jqxChart backgroundColor property

           
        
    
          


输出:

参考: https://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxchart/jquery-chart-api.htm?search=