gigaZhang / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

threre is no possibility to add label to axis in the chart #882

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(This is for feature requests and bugs in Struts2 jQuery Plugin - for
getting help, please use the User Group.
http://groups.google.com/group/struts2-jquery )

What steps will reproduce the problem?
1. create chart, fill it with data

What is the expected output? What do you see instead?
EXPECTED: there is possibility to add axisX and axisY label - in 
struts2-jquery-plugin there use to be "axisXLabel" and "axisYLabel" property ...
ACTUAL: the only way to describe axis X and axis Y is to add additional css div

Which struts2 version?
2.3.4.1

Which struts2-jquery plugin version?
3.3.3

Please provide any additional information below.

Original issue reported on code.google.com by gadomska...@gmail.com on 28 Aug 2012 at 7:43

GoogleCodeExporter commented 9 years ago
Flot does not provide a possibility for axis labels by default.
But it looks like there is an plugin for this feature.

https://github.com/xuanluo/flot-axislabels

I will made a try if it is usefully.

Original comment by johgep on 8 Sep 2012 at 4:37

GoogleCodeExporter commented 9 years ago
With 3.4.0 it can be defined like following example:

    <sjc:chart
        id="chartObjects"
        cssStyle="width: 600px; height: 400px;"
        xaxisLabel="Label-X"
        yaxisLabel="Label-Y"
        yaxisLabelFontSizePixels="22"
        yaxisLabelFontFamily="Arial"
    >
        <sjc:chartData
            label="List with Objects"
            list="objList"
            listKey="myKey"
            listValue="myValue"
            points="{ show: true }"
            lines="{ show: false }"
        />
    </sjc:chart>

http://code.google.com/p/struts2-jquery/source/detail?r=1714

Original comment by johgep on 18 Sep 2012 at 7:09

GoogleCodeExporter commented 9 years ago

Original comment by johgep on 15 Oct 2012 at 6:45