You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/08/02 15:13:38 UTC

[GitHub] akvaliya commented on issue #8764: Display bar chart with thumbnails in yAxis instead of label

akvaliya commented on issue #8764: Display bar chart with thumbnails in yAxis instead of label
URL: https://github.com/apache/incubator-echarts/issues/8764#issuecomment-409962294
 
 
   It works only with data without space & some characters(-,_).
   Below is my yAxis options 
   
   ```
   yAxis: {
           type: 'category',
           inverse: true,
           data: ['Full Sunny', 'Cloudy', 'Showers'],
           axisLabel: {
               formatter: function (value) {
                   return '{value|' + value + '}  {' + value + '| }';
               },
               margin: 20,
               rich: {
                   value: {
                       lineHeight: 30,
                       align: 'center'
                   },
                   'Full Sunny': {
                       height: 40,
                       align: 'center',
                       backgroundColor: {
                           image: weatherIcons.Sunny
                       }
                   },
                   'Cloudy': {
                       height: 40,
                       align: 'center',
                       backgroundColor: {
                           image: weatherIcons.Cloudy
                       }
                   },
                   'Showers': {
                       height: 40,
                       align: 'center',
                       backgroundColor: {
                           image: weatherIcons.Showers
                       }
                   }
               }
           }
       }
   ```
   
   This is result chart
   
   
   ![](https://content.screencast.com/users/Hardik3416/folders/Jing/media/bc1d0420-8295-4124-8af4-7f9b9bbf9aaa/2018-08-02_2040.png)
   
   
   As you can see images displaying in "Cloudy" & "Showers" (without space). 
   But image is not displaying in 'Full Sunny'. 
   
   What am i missing here?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org