vikramkalta commented on issue #8160: Highlighting the clicked month
URL: 
https://github.com/apache/incubator-echarts/issues/8160#issuecomment-393639174
 
 
   @thomaspessato I guess u are trying to just emphasize the circle when it is 
clicked!! 
   I reworked on it today and and found exactly what i was looking for, so i 
made a custom series with same rectangular figure, and position it inside 
renderItem property.
   
   renderItem: (params: any, api: any) => {
                   const categoryIndex = api.value(0);
                   console.log('category', api.coord([api.value(0), maxVal]));
                   const start = api.coord([api.value(0), maxVal]);
   
                   if (params.dataIndex === this.monthIndex) {
                     return {
                       type: 'group',
                       children: [
                         {
                           type: 'rect',
                           shape: {
                             width: '30',
                             height: 110
                           },
                           position: newStart,
                           top: this.options.grid.top,
                           style: { fill: 'rgba(255,255,0,0.3)' }
                         }
                       ]
                     };
                   }
   
                 },
   
   Phewwww... even if screen sizez changes the graphic does not move a inch.....

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to