bitbw commented on issue #19819:
URL: https://github.com/apache/echarts/issues/19819#issuecomment-2164227442

   series.type.cursord is invalid , I use the graphic.type.cursor instead of 
that
   ```ts
   export const getTaskFlowChartOptions = (
     data: ProcessManage.TaskDetailStageData
   ) => {
     const mainColor = getColor(data);
     const newData = {
       extraData: data,
       name: data.stageName,
       value: data.completeProgress,
     };
     const option = {
       // set cursor
       graphic: [
         {
           type: "rect",
           z: 100,
           shape: {
             width: 999,
             height: 999,
           },
           style: {
             fill: "transparent",
           },
           cursor: data.disabled ? "not-allowed" : "pointer",
         },
       ],
       backgroundColor: "#fff",
       title: [
         {
           text: newData.name,
           left: "47%",
           top: "30%",
           textAlign: "center",
           textStyle: {
             textBorderType: "solid",
             fontSize: "20",
             fontWeight: "700",
             color: "#2d3844",
             textAlign: "center",
             textBorderColor: "rgba(0, 0, 0, 0)",
             textShadowColor: "#000",
             textShadowBlur: "0",
             textShadowOffsetX: 0,
             textShadowOffsetY: 1,
           },
         },
         {
           text: newData.value + "%",
           left: "47%",
           top: "55%",
           textAlign: "center",
           textStyle: {
             fontSize: "20",
             fontWeight: "700",
             color: "#2d3844",
             textAlign: "center",
             textBorderColor: "rgba(0, 0, 0, 0)",
             textShadowColor: "#000",
             textShadowBlur: "0",
             textShadowOffsetX: 0,
             textShadowOffsetY: 1,
           },
           padding: 5,
           backgroundColor: "rgba(255, 255, 255, 0.4)",
           borderRadius: 20,
         },
       ],
       polar: {
         radius: ["95%", "85%"],
         center: ["50%", "50%"],
       },
       angleAxis: {
         max: 100,
         axisLine: {
           show: false,
         },
         axisTick: {
           show: false,
         },
         axisLabel: {
           show: false,
         },
         splitLine: {
           show: false,
         },
       },
       radiusAxis: {
         type: "category",
         show: true,
         axisLabel: {
           show: false,
         },
         axisLine: {
           show: false,
         },
         axisTick: {
           show: false,
         },
       },
       series: [
         {
           // silent: data.disabled ?true:false,
           // cursor: data.disabled ? "not-allowed" : "pointer", // this is 
invalid
           type: "liquidFill",
           radius: "86%",
           z: 1,
           center: ["50%", "50%"],
           color: [
             new TinyColor(mainColor).darken(20).toString(),
             new TinyColor(mainColor).lighten(0).toString(),
             new TinyColor(mainColor).lighten(10).toString(),
           ],
           data: [
             {
               ...newData,
               value: newData.value / 100,
             },
             {
               ...newData,
               value: newData.value / 100,
             },
             {
               ...newData,
               value: newData.value / 100,
             },
           ],
           backgroundStyle: {
             borderWidth: 1,
           },
           label: {
             formatter: "",
           },
           outline: {
             show: true,
             itemStyle: {
               borderWidth: 0,
             },
             borderDistance: 0,
           },
         },
         {
           name: "",
           type: "bar",
           radius: "80%",
           roundCap: true,
           z: 2,
           showBackground: true,
           backgroundStyle: {
             color: "#ccc",
           },
           data: [newData],
           coordinateSystem: "polar",
           itemStyle: {
             // normal: {
             color: new TinyColor(mainColor).darken(10).toString(),
           },
         },
       ],
     } as EChartsOption;
     return option;
   };
   ```


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

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to