feat: Use axisSpec.desc as tooltip

This commit is contained in:
1ambda 2017-04-10 14:15:16 +09:00
parent f98d4c9f2c
commit 7c6768f6f0
2 changed files with 8 additions and 7 deletions

View file

@ -81,9 +81,9 @@ class AwesomeVisualization extends Visualization {
transform: { method: 'object', },
sharedAxis: false, /** set if you want to share axes between sub charts, default is `false` */
axis: {
'xAxis': { dimension: 'multiple', axisType: 'key', },
'yAxis': { dimension: 'multiple', axisType: 'aggregator'},
'category': { dimension: 'multiple', axisType: 'group', },
'xAxis': { dimension: 'multiple', axisType: 'key', description: 'serial', },
'yAxis': { dimension: 'multiple', axisType: 'aggregator', description: 'serial', },
'category': { dimension: 'multiple', axisType: 'group', description: 'categorical', },
},
parameter: {
'xAxisUnit': { valueType: 'string', defaultValue: '', description: 'unit of xAxis', },
@ -138,9 +138,9 @@ class AwesomeVisualization extends Visualization {
|`axisType` | `aggregator` | Column(s) in this axis will be used as `value` like in `PivotTransformation`. These columns will be served in `column.aggregator` |
|`axisType` | `group` | Column(s) in this axis will be used as `group` like in `PivotTransformation`. These columns will be served in `column.group` |
|`axisType` | (string) | Any string value can be used here. These columns will be served in `column.custom` |
|`valueType` | (string) | Describe the value type just for annotation |
|`maxAxisCount` | (int) | The max number of columns that this axis can contain. (unlimited if `undefined`) |
|`minAxisCount` | (int) | The min number of columns that this axis should contain to draw chart. (`1` in case of single dimension) |
|`maxAxisCount` (optional) | (int) | The max number of columns that this axis can contain. (unlimited if `undefined`) |
|`minAxisCount` (optional) | (int) | The min number of columns that this axis should contain to draw chart. (`1` in case of single dimension) |
|`description` (optional) | (string) | Description for the axis. |
<br/>

View file

@ -86,8 +86,9 @@ limitations under the License.
<div class="columns lightBold">
<!-- axis name -->
<span class="label label-default"
uib-tooltip="{{axisSpec.description ? axisSpec.description : ''}}"
style="font-weight: 300; font-size: 13px; margin-left: 1px;">
{{getAxisAnnotation(axisSpec)}}
{{getAxisAnnotation(axisSpec)}} 1
</span>
<span class="label label-default"
ng-style="getAxisTypeAnnotationColor(axisSpec)"