Hi,
I use the Chart API to produce such graphs:

http://www.freevec.org/function/bmove512

but, the data appears to have a bit wrong scaling: here is the Y data:

xdata,512,1024,2048,4096,8192,16384,32768
scalar aligned,678.1684,813.8021,976.5625,1198.2362,1194.5719,1178.3560,975.3433
vector aligned,1743.8616,2712.6736,3616.8981,4155.5851,4542.1512,4200.2688,2037.1578

As it is, it appears to be more than the 5000 MB/s where it only reaches 4542 MB/s! :)

Would you like me to print the output of print_r() on the chart object?

Comments

tjholowaychuk’s picture

The print_r would defiantly help I will see what I can do

kmargar’s picture

Here it is:

Array
(
    [#chart_id] => 31
    [#title] => Array
        (
            [#title] => bmove512
            [#color] => 0000ee
            [#size] => 15
        )

    [#type] => lc
    [#size] => Array
        (
            [#width] => 600
            [#height] => 350
        )

    [#grid_lines] => Array
        (
            [#x_step] => 30
            [#y_step] => 15
            [#segment_length] => 1
            [#blank_segment_length] => 3
        )

    [#adjust_resolution] => 1
    [#bar_size] => Array
        (
            [#size] => 35
            [#spacing] => 0
        )

    [#data] => Array
        (
            [0] => Array
                (
                    [0] => 678.1684
                    [1] => 813.8021
                    [2] => 976.5625
                    [3] => 1198.2362
                    [4] => 1194.5719
                    [5] => 1178.3560
                    [6] => 975.3433
                )

            [1] => Array
                (
                    [0] => 1743.8616
                    [1] => 2712.6736
                    [2] => 3616.8981
                    [3] => 4155.5851
                    [4] => 4542.1512
                    [5] => 4200.2688
                    [6] => 2037.1578
                )

        )

    [#legends] => Array
        (
            [0] => scalar aligned
            [1] => vector aligned
        )

    [#mixed_axis_labels] => Array
        (
            [y] => Array
                (
                    [0] => Array
                        (
                            [0] => Array
                                (
                                    [#start] => 0
                                    [#end] => 5451
                                )

                        )

                    [1] => Array
                        (
                            [0] => Array
                                (
                                    [#label] => MB/s
                                    [#position] => 95
                                )

                        )

                )

            [x] => Array
                (
                    [1] => Array
                        (
                            [0] => Array
                                (
                                    [#label] => Array
                                        (
                                            [0] => 512
                                            [1] => 1024
                                            [2] => 2048
                                            [3] => 4096
                                            [4] => 8192
                                            [5] => 16384
                                            [6] => 32768
                                        )

                                    [#position] => 
                                )

                        )

                    [2] => Array
                        (
                            [0] => Array
                                (
                                    [#label] => Size (in bytes)
                                    [#position] => 50
                                )

                        )

                )

        )

    [#data_colors] => Array
        (
            [0] => 00ef00
            [1] => 0000ef
            [2] => ef0000
            [3] => efef00
            [4] => ef00ef
            [5] => 00efef
            [6] => 00af00
            [7] => 0000af
            [8] => af0000
        )

)
tjholowaychuk’s picture

Seems to be fine, I think this may be an issue with how google charts renders the range labels, "[#end] => 5451" since the range is so large google will simply round it up, this is nothing I have done. You may have to generate the LEFT X-axis labels manually with chart_mixed_axis_label()'s

Unfortunatly the API google provides is not the most robust implementation of charting but at least for the most part it is very simple

kmargar’s picture

true. i changed the max value manually (1.2*max(values)) so as to leave some space above the graph, but apparently it caused some trouble. Now I have just removed the 1.2 and it seems to be working fine, albeit the graph takes the whole chart area.

I guess this is the same reason that causes this, right?

http://www.freevec.org/function/memchr

tjholowaychuk’s picture

Hmm without seeing the code for memchr I cant really say, but as long as it does not have a max set on #adjust_resolution it should be resolving the highest point to '100' which would just be the top of the chart so it should not have cutoff like that

tjholowaychuk’s picture

its to bad that there are size limitations on these images as well, the labels get pretty cluttered on the bottom, hopefully Google will address this

tjholowaychuk’s picture

Status: Active » Closed (fixed)
kmargar’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

Hi again,

I sent this email to the google charts api forum, I got this reply, any idea what he means?

http://groups.google.com/group/google-chart-api/browse_thread/thread/b97...

tjholowaychuk’s picture

Hmm, I am not sure what to say, wish I could help more but I have not had problems with adjust_resolution being set to TRUE the values have always been resolved properly between the 0 and 100 points

kmargar’s picture

Could you check that thread again (last reply)? Perhaps he found the problem causing this.

tjholowaychuk’s picture

Hmm I see there are alot of new features released I will take look at these, as well as your issue, and get back to you ASAP.

tjholowaychuk’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)