You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "Gumichocopengin8 (via GitHub)" <gi...@apache.org> on 2023/02/28 08:47:27 UTC

[GitHub] [echarts-examples] Gumichocopengin8 opened a new issue, #70: Unable to add a new chart on local

Gumichocopengin8 opened a new issue, #70:
URL: https://github.com/apache/echarts-examples/issues/70

   I tried to add a new chart in the examples. 
   
   ### Steps I tried
   
   1. added a file in `public/examples/ts/new-chart.ts`
   2. added a chart data into `src/data/chart-list-data.js`
   3. ran `npm run dev`
   4. open `http://localhost:3002/en/index.html`
   5. found the chart component I made
   6. clicked the component
   7. just saw blank editor and preview page
   
   How can I show the code and preview on local? 
   
   ---
   
   I also read [the doc](https://github.com/apache/echarts-examples#use-local-echarts-build). 
   > Update the URL of localEChartsDir & localEChartsGLJS in src/common/config.js
   
   This part is a bit confusing. How should I update the URL of them? 
   
   > Add local=1 in URL
   
   Do I need to run some commands to generate code and/or preview for local?
   
   


-- 
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-examples] Gumichocopengin8 commented on issue #70: Unable to add a new chart on local

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

   Thank you for the detailed instruction. I could successfully display the chart. 


-- 
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-examples] Gumichocopengin8 closed issue #70: Unable to add a new chart on local

Posted by "Gumichocopengin8 (via GitHub)" <gi...@apache.org>.
Gumichocopengin8 closed issue #70: Unable to add a new chart on local
URL: https://github.com/apache/echarts-examples/issues/70


-- 
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-examples] tyn1998 commented on issue #70: Unable to add a new chart on local

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

   > This part is a bit confusing. How should I update the URL of them?
   
   If your new chart depends on a local version of ECharts(which often means it is a developing version of your own), then you must do the two things as instructed to make sure the website loads the ECharts from local rather outside:
   
   <img width="1512" alt="image" src="https://user-images.githubusercontent.com/32434520/221805800-8b5a7561-0699-4a66-949e-fe00007fd129.png">
   
   <img width="1472" alt="image" src="https://user-images.githubusercontent.com/32434520/221805875-6bffbeac-5a71-4518-91ca-ed6f5abf9466.png">
   
   You should also run a web server like `http-server` to serve the local ECharts.
   
   


-- 
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-examples] tyn1998 commented on issue #70: Unable to add a new chart on local

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

   `npm run compile:example` should be run first. 
   
   Please see: https://github.com/apache/echarts-examples/tree/dev#how


-- 
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