You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by "PragmaTwice (via GitHub)" <gi...@apache.org> on 2023/05/08 08:57:25 UTC
[GitHub] [incubator-kvrocks-website] PragmaTwice commented on a diff in pull request #95: Add code-block and chart
PragmaTwice commented on code in PR #95:
URL: https://github.com/apache/incubator-kvrocks-website/pull/95#discussion_r1187203761
##########
src/components/HomepageFeatures/index.tsx:
##########
@@ -61,20 +70,290 @@ function Feature({imgPath,title, description}: FeatureItem) {
);
}
-export default function HomepageFeatures(): JSX.Element {
+export function PieChartRight(): JSX.Element {
+ useEffect(() => {
+ var myChart_obj=document.getElementById("PieChartRight")
+ if (myChart_obj != null && myChart_obj != undefined){
+ echarts.dispose(document.getElementById("PieChartRight"))
+ }
+ var myChart = echarts.init(document.getElementById("PieChartRight"));
+ myChart.setOption({
+ title: {
+ text: 'Supported Commands',
+ left: 'center'
+ },
+ tooltip: {
+ trigger: 'item',
+
+ },
+ legend: {
+ orient: 'vertical',
+ left: 'right'
+ },
+ series: [
+ {
+ name: 'Access From',
+ type: 'pie',
+ radius: '75%',
+ data: [
+ { value: 870, name: 'Supported ',itemStyle: {color: 'rgb(255,0,102)'} },
+ { value: 100, name: 'Todo',itemStyle: {color: 'rgb(153,0,255)'} },
+ { value: 30, name: 'Doing',itemStyle: {color: 'rgb(246,108,104)'} }
Review Comment:
```suggestion
{ value: 875, name: 'Supported ',itemStyle: {color: 'rgb(255,0,102)'} },
{ value: 125, name: 'TODO',itemStyle: {color: 'rgb(153,0,255)'} },
```
--
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: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org