tags:

views:

285

answers:

1

I would like to round (0 decimals) the values on the x-axis of a flot graph. The x-axix show week numbers. Does anyone know how to do that?

http://www.snowcams.eu/snowcondition/saas%20fee/998

+2  A: 

I take a "risk" by answering you as your accept rate is 0%.

You really should consider accepting answers on some of your questions. You can do this by clicking the checkbox next to the correct answer for each question.


Anyway here is your solution (this can all be found in the plugin API Documentation)

$.plot(
    $("#placeholder"),
    [{data:d1, lines:{show: true}, points:{show: true}, label:"Mountain"}],
    {xaxis: {tickSize:1, tickDecimals:0 }}
);
jitter