simplyvikram / google-chartwrapper

Automatically exported from code.google.com/p/google-chartwrapper
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

passing values as variable for axes range tag, on output puts one extra comma. #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

I am using google chart with django template system.

{% chart  Line section_value.data encoding=extended %}
            {% color ff0000 00ff00 0000ff  %}
            {% legend section_value.legend  %}
            {% size 700 150 %}
            {% legend_pos b  %}
            {% axes type xy  %}
            {% axes range rangeval %}
            {% label section_value.label %}
            {% fill bg s EFEFEF  %}

        {% endchart %}
Here section_value is a map with some key value pairs like data and label
I am passing rangeval as a string '1,0,300' from my client of this code.

When I see the resultant url I get "chxr:1,0,300," Notice that one extra comma 
is appended in the end. Which is erroneous.

Moreover I can't access map in {% axes range  %} like 
{% legend section_value.legend  %}

When I see the resultant url I get "chxr:1,0,300," Notice that one extra comma 
is appended in the end. Which is erroneous.

I am using GChartWrapper-0.9 on ubuntu.

Original issue reported on code.google.com by saurabh7...@gmail.com on 2 Aug 2010 at 3:16