Skip to content
Related Articles
Get the best out of our app
Open App

Related Articles

jQWidgets jqxChart crosshairsDashStyle Property

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

jQWidgets is a JavaScript framework for making web-based applications for PC and mobile devices. It is a very powerful and optimized framework, platform-independent, and widely supported. jqxChart is a lightweight and powerful chart widget written 100% in javascript. It offers many advanced features and supports three different rendering technologies – SVG, HTML5 Canvas & VML.

The crosshairsDashStyle property is used to set or return the crosshairsDashStyle property. i.e. this property is used to set or return the dash style of the crosshairs lines. It accepts string type value and its default value is ‘2,2’.


  • Set the crosshairsDashStyle property.

        crosshairsDashStyle: string 

  • Return the crosshairsDashStyle property.

    var crosshairsDashStyle = 
        $('Selector').jqxHeatMap('crosshairsDashStyle ');

Linked Files: Download from the link. In the HTML file, locate the script files in the downloaded folder:

<link rel=”stylesheet” href=”jqwidgets/styles/jqx.base.css” type=”text/css” />
<script type=”text/javascript” src=”scripts/jquery-1.11.1.min.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxcore.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxchart.core.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxdraw.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxdata.js”></script>

Example: The below example illustrates the jqxHeatMap crosshairsDashStyle property in jQWidgets:


<!DOCTYPE html>
<html lang="en">
    <link rel="stylesheet" 
           type="text/css" />
    <script type="text/javascript" 
    <script type="text/javascript" 
    <script type="text/javascript"
    <script type="text/javascript" 
    <script type="text/javascript" 
        <h1 style="color: green">
        <h3>jQWidgets jqxChart crosshairsDashStyle property</h3>
        <body class='default'></body>
        <div id='chartContainer' 
             style="width:700px; height: 500px"/>
    <script type="text/javascript">
        $(document).ready(function () {
            var Data = [{
            name: 'A',
            ques: 1,
        }, {
            name: 'B',
            ques: 1,
        }, {
            name: 'C',
            ques: 3,
        }, {
            name: 'D',
            ques: 21,
        // prepare jqxChart settings
        var settings = {
            showLegend: true,
            enableCrosshairs: true,
            crosshairsDashStyle: '10,10',
            crosshairsLineWidth: 1.5,
            title: "Coding Questions",
            description: "Solved Daily",
            source: Data,
            categoryAxis: {
                dataField: 'name'
            seriesGroups: [{
                type: 'line',
                orientation: 'horizontal',
                columnsGapPercent: 10,
            valueAxis: {
                unitInterval: 10,
                maxValue: 15,
                displayValueAxis: true,
                description: '',
            series: [{
                dataField: 'ques',
                displayText: 'Question Solved'



My Personal Notes arrow_drop_up
Last Updated : 31 Oct, 2021
Like Article
Save Article
Similar Reads
Related Tutorials