Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BarRenderer Ticks #7

Open
thickey256 opened this issue Oct 7, 2016 · 6 comments
Open

BarRenderer Ticks #7

thickey256 opened this issue Oct 7, 2016 · 6 comments

Comments

@thickey256
Copy link

thickey256 commented Oct 7, 2016

I have tried several ways using a combination of different [ ] and I can't work out how to add tick titles for Bar charts.

[[3,7]]
works fine but giving ticks of 1 and 2

I have tried things like
[[[3,7]][['test','test2']]]
And having no joy.. Can I get a hint?

@adtyashgl
Copy link

The way I have accomplished this is by adding ticks in the chart option.

`{
series: [ {color:'red'} ],
animate: !$.jqplot.use_excanvas,
seriesDefaults: {
renderer:$.jqplot.BarRenderer,
// Show point labels to the right ('e'ast) of each bar.
// edgeTolerance of -15 allows labels flow outside the grid
// up to 15 pixels. If they flow out more than that, they
// will be hidden.
pointLabels: { show: true, location: 'e', edgeTolerance: -15 },
// Rotate the bar shadow as if bar is lit from top right.
shadowAngle: 135,
// Here's where we tell the chart it is oriented horizontally.
rendererOptions: {
barDirection: 'vertical'
}
},
axes: {
yaxis: {
renderer: $.jqplot.CategoryAxisRenderer,

        },
        **xaxis: {
            renderer: $.jqplot.CategoryAxisRenderer,
            ticks: [256,283,287,110]
        },**
      
    }
}`

My chart options are generated via a data source so I fill the ticks array there. Hope it helps

@aneeshmalhotra
Copy link

Hi,
I am seeking some help for jqplot plugin.

I have followed the installation steps i.e. copy the .js file to plugin/jqplot folders and mentioned the same details in index.html file. I can see jqplot widget. I need some help in what data to add in chart data and chart options. I tried providing non json datasource from application like weather API. and I have copied above JS script in chart option. I cannot see anything in Widget.

@aneeshmalhotra
Copy link

Figured out. Thanks

@swath-0309
Copy link

Hi,
I am seeking some help for jqplot plugin.

I have followed the installation steps i.e. copy the .js file to plugin/jqplot folders and mentioned the same details in index.html file. I can see jqplot widget. I need some help in what data to add in chart data and chart options. I tried providing non json datasource from application like weather API. and I have copied above JS script in chart option. I cannot see anything in Widget.

Figured out. Thanks

can u share how to do?

@aneeshmalhotra
Copy link

aneeshmalhotra commented Jul 23, 2020 via email

@swath-0309
Copy link

swath-0309 commented Jul 23, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants