You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "CWS-CTRL (via GitHub)" <gi...@apache.org> on 2023/04/16 10:30:08 UTC

[GitHub] [echarts] CWS-CTRL opened a new issue, #18517: [Bug] title.textStyle.ellipsis config not working

CWS-CTRL opened a new issue, #18517:
URL: https://github.com/apache/echarts/issues/18517

   ### Version
   
   5.4.2
   
   ### Link to Minimal Reproduction
   
   https://codepen.io/cws-ctrl/pen/MWPyZjY
   
   ### Steps to Reproduce
   
   ## Problem
   ### `title.textStyle.ellipsis` config not working
   Read the source code and discover
   [![p99qm80.png](https://s1.ax1x.com/2023/04/16/p99qm80.png)](https://imgse.com/i/p99qm80)
   Even if you show "ellipsis" set in the echarts configuration,
   this operation also causes the final output to have no "ellipsis" attribute,
   then you end up with the default value "..."
   ## Scheme
   You can add it to the second parameter of the `createTextStyle` function
   `ellipsis: textStyleModel.getShallow.('ellipsis')`
   There may be more than one error
   
   ### Current Behavior
   
   not working
   
   ### Expected Behavior
   
   docs: Ellipsis to be displayed when overflow is set to truncate.
   
   'truncate' Truncate the overflow lines.
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   Or maybe it's just me


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [echarts] Ovilia closed issue #18517: [Bug] title.textStyle.ellipsis config not working

Posted by "Ovilia (via GitHub)" <gi...@apache.org>.
Ovilia closed issue #18517: [Bug] title.textStyle.ellipsis config not working
URL: https://github.com/apache/echarts/issues/18517


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [echarts] Ovilia commented on issue #18517: [Bug] title.textStyle.ellipsis config not working

Posted by "Ovilia (via GitHub)" <gi...@apache.org>.
Ovilia commented on issue #18517:
URL: https://github.com/apache/echarts/issues/18517#issuecomment-1512515629

   It seems none of the `ellipsis` is working. See also the [demo](https://echarts.apache.org/examples/zh/editor.html?c=line-simple&version=5.4.2&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqM2gHUqAlXIAWClQDEOEFQGVmphdFoBdPqViNceADKMARlQA2RVPfQB3CAEwbSIAVgAGOz9gADcqDgAzT2B_OjAOSyYWXn5SL08IEDx8OgBSCty_WETOAFtmFg46DFa29o622jyAXxIe6PIcUuJ7Cmo6WMZPJW70AZI8BIgqQlhRPN8_ITARdYBGSJ5YACYAZijTk4AWY5P9gA5j_bOw5-uAdjuANgjbPPQ4xoskK0GUvRI1hQPQA3EA). I'm fixing this problem.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [echarts] Ovilia commented on issue #18517: [Bug] title.textStyle.ellipsis config not working

Posted by "Ovilia (via GitHub)" <gi...@apache.org>.
Ovilia commented on issue #18517:
URL: https://github.com/apache/echarts/issues/18517#issuecomment-1512358915

   The demo cannot run. Please consider adding an empty series.
   
   It's nice to hear that you have figured out the solution. Please consider making a pull request!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [echarts] CWS-CTRL commented on issue #18517: [Bug] title.textStyle.ellipsis config not working

Posted by "CWS-CTRL (via GitHub)" <gi...@apache.org>.
CWS-CTRL commented on issue #18517:
URL: https://github.com/apache/echarts/issues/18517#issuecomment-1512381589

   > The demo cannot run. Please consider adding an empty series.
   > 
   > It's nice to hear that you have figured out the solution. Please consider making a pull request!
   
   Sorry, this is an "option", "ellipsis" specifies "%%%"  but gets the default value "..."
   ![p9PIxII.png](https://s1.ax1x.com/2023/04/18/p9PIxII.png)
   
   **option = {
     title: {
       text: 'Main Title',
       left: 'center',
       top: 'center',
       textStyle: {
         fontSize: 30,
         width: 100,
         overflow: 'truncate',
         ellipsis: '%%%' 
         //not working
         // docs: Ellipsis to be displayed when overflow is set to truncate.
         //       'truncate' Truncate the overflow lines.
       },
     }
   };**


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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