Martin,

It looks like you want something related to a log scale, but inverted.
There is support for log scale, but it currently takes control of the tick
values being displayed.  With sufficient hacking, I think you should be
able to get the spacing of a log scale, with the tick labels you want, but
without the minor ticks.  Use these options, for example:

{
  hAxis: {
      "scaleType": "log",
      "direction": -1,
      "ticks": [
        {
          "v": 250,
          "f": "1500"
        },
        {
          "v": 500,
          "f": "1250"
        },
        {
          "v": 750,
          "f": "1000"
        },
        {
          "v": 1000,
          "f": "750"
        },
        {
          "v": 1250,
          "f": "500"
        },
        {
          "v": 1500,
          "f": "250"
        }
      ],
      "viewWindow": {
        "max": 1500,
        "min": 100
      }
  }
}

Note that the values (v) are used for positioning the tick labels while the
formatted representations (f) specify what to use for the tick labels.

I get something like this:


Maybe my position values are not quite right, or maybe your 1.85 scaling
factor means something else entirely.  If the latter, maybe you can figure
out how to use the ticks option to do what you need.


On Mon, Jul 6, 2015 at 10:38 AM, MDL <[email protected]> wrote:

> Hi,
>
> I need to customize the hAxis of a line chart. The values for this axis
> are continous and numeric. My problem is that I need to scale the axis in a
> 1.85 factor so the axis will looks like the attached file.
>
> Is there a way to achieve this ?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to
> [email protected].
> Visit this group at
> http://groups.google.com/group/google-visualization-api.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>  -
978-394-1058
[email protected] <[email protected]>   5CC, Cambridge MA
[email protected] <[email protected]> 9 Juniper Ridge
Road, Acton MA

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to