We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Wind Rose: labels lost

Hello, 

I have a problem with the Wind Rose. I don't know why, but some labels are lost; it has to be 16 but it shows 8 labels. I attached a screenshot and the code:

$("#WindRose").ejChart(
        {
            border: { width: 0, color: 'black' },

            //Initializing Primary X Axis
            primaryXAxis:
             {
                 title: { text: 'Dirección [°]' },
                 labelPlacement: 'onticks'
             },

            //Initializing Primary Y Axis
            primaryYAxis:
            {
                title: { text: 'Altura [m]' },
                labelFormat: "{value}%"
            },

            //Initializing Common Properties for all the series
            commonSeriesOptions:
            {
                type: 'polar',
                enableAnimation: true,
                isStacking: true,
                drawType: 'column',
                marker:
                {
                    shape: 'circle',
                    size:
                    {
                        height: 50, width: 10
                    },
                    visible: false
                },
                border: { color: 'white', width: 0.5 }
            },

            //Initializing Series
            series:
            [
                {
                    points: [{ x: 'N', y: 0.0 }, { x: 'NNE', y: 0.0 }, { x: 'NE', y: 0.0 }, { x: 'ENE', y: 0.0 },
                             { x: 'E', y: 0.0 }, { x: 'ESE', y: 0.0 }, { x: 'SE', y: 0.0 }, { x: 'SSE', y: 0.0 },
                             { x: 'S', y: 0.0 }, { x: 'SSW', y: 0.0 }, { x: 'SW', y: 0.0 }, { x: 'WSW', y: 0.0 },
                             { x: 'W', y: 0.0 }, { x: 'WNW', y: 0.0 }, { x: 'NW', y: 0.0 }, { x: 'NNW', y: 0.0 }],
                    name: '0.0 - 0.2 [m]',
                    fill: '#6666FF'
                },
                {
                    points: [{ x: 'N', y: 0.0 }, { x: 'NNE', y: 0.0 }, { x: 'NE', y: 0.0 }, { x: 'ENE', y: 0.0 },
                             { x: 'E', y: 0.0 }, { x: 'ESE', y: 0.0 }, { x: 'SE', y: 0.0 }, { x: 'SSE', y: 0.0 },
                             { x: 'S', y: 0.0 }, { x: 'SSW', y: 0.0 }, { x: 'SW', y: 0.0 }, { x: 'WSW', y: 0.0 },
                             { x: 'W', y: 0.0 }, { x: 'WNW', y: 0.0 }, { x: 'NW', y: 0.0 }, { x: 'NNW', y: 0.0 }],
                    name: '0.2 - 0.4 [m]',
                    fill: '#4DB797'
                },
                {
                    points: [{ x: 'N', y: 0.0 }, { x: 'NNE', y: 0.0 }, { x: 'NE', y: 0.0 }, { x: 'ENE', y: 0.0 },
                             { x: 'E', y: 0.0 }, { x: 'ESE', y: 0.0 }, { x: 'SE', y: 0.0 }, { x: 'SSE', y: 0.0 },
                             { x: 'S', y: 0.0 }, { x: 'SSW', y: 0.0 }, { x: 'SW', y: 0.0 }, { x: 'WSW', y: 0.0 },
                             { x: 'W', y: 0.0 }, { x: 'WNW', y: 0.0 }, { x: 'NW', y: 0.0 }, { x: 'NNW', y: 0.0 }],
                    name: '0.4 - 0.6 [m]',
                    fill: '#97D6E8'
                },
                {
                    points: [{ x: 'N', y: 0.0 }, { x: 'NNE', y: 0.0 }, { x: 'NE', y: 0.0 }, { x: 'ENE', y: 0.0 },
                             { x: 'E', y: 0.0 }, { x: 'ESE', y: 0.0 }, { x: 'SE', y: 0.0 }, { x: 'SSE', y: 0.0 },
                             { x: 'S', y: 0.0 }, { x: 'SSW', y: 0.0 }, { x: 'SW', y: 0.0 }, { x: 'WSW', y: 0.0 },
                             { x: 'W', y: 0.0 }, { x: 'WNW', y: 0.0 }, { x: 'NW', y: 0.0 }, { x: 'NNW', y: 0.0 }],
                    name: '0.6 - 0.8 [m]',
                    fill: '#FEE378'
                },
                {
                    points: [{ x: 'N', y: 0.0 }, { x: 'NNE', y: 0.0 }, { x: 'NE', y: 0.0 }, { x: 'ENE', y: 0.0 },
                             { x: 'E', y: 0.0 }, { x: 'ESE', y: 0.0 }, { x: 'SE', y: 0.0 }, { x: 'SSE', y: 0.0 },
                             { x: 'S', y: 0.0 }, { x: 'SSW', y: 0.0 }, { x: 'SW', y: 0.0 }, { x: 'WSW', y: 0.0 },
                             { x: 'W', y: 0.0 }, { x: 'WNW', y: 0.0 }, { x: 'NW', y: 0.0 }, { x: 'NNW', y: 0.0 }],
                    name: '0.8 - 1.0 [m]',
                    fill: '#FD9D6F'
                },
                {
                    points: [{ x: 'N', y: 0.0 }, { x: 'NNE', y: 0.0 }, { x: 'NE', y: 0.0 }, { x: 'ENE', y: 0.0 },
                             { x: 'E', y: 0.0 }, { x: 'ESE', y: 0.0 }, { x: 'SE', y: 0.0 }, { x: 'SSE', y: 0.0 },
                             { x: 'S', y: 0.0 }, { x: 'SSW', y: 0.0 }, { x: 'SW', y: 0.0 }, { x: 'WSW', y: 0.0 },
                             { x: 'W', y: 0.0 }, { x: 'WNW', y: 0.0 }, { x: 'NW', y: 0.0 }, { x: 'NNW', y: 0.0 }],
                    name: '1.0 - >   [m]',
                    fill: '#F37021'
                }
            ],
            load: "loadTheme",
            size: { height: '350' },
            legend: { visible: true, position: 'right', alignment: 'near' }
        });

wind rose



Thanks for your help.

1 Reply

SK Sanjith Kesavan Syncfusion Team August 18, 2015 01:15 PM UTC

Hi Julio,
Thanks for using Syncfusion product.
We have analyzed your query and prepared the sample using the code provided in the update. We cannot able to reproduce the issue in our side.

Please find the sample in the below link
Sample Link: http://www.syncfusion.com/downloads/support/forum/119944/ze/Windrose-32305035
Please mention which version of the ej.web.all.min.js. This will be useful for us to help you.

Please let us know if you have any queries.

Regards,

Sanjith K.?



Loader.
Live Chat Icon For mobile
Up arrow icon