Weird Symbols show up when using Local version compared to CDN
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 18.3k
- フォーク
- 2k
- 平均マージ
- 2日 12時間
- マージ済み PR(30日)
- 28
説明
Hello,
I am currently trying to plot a graph using plotly-cartesian.min.js. We are currently limited to downloading and using a local copy rather than the CDN. I am plotting a graph that use the tickformat '.1e' for the y axis.
When I run the code using the local version, I get some rather weird symbols when the values are between 0 and 1. It looks like there is some encoding issue but the html I am running has the tags <meta charset="utf-8" /> as well as the script has the charset specified.
When I run the CDN version, the values are what are to be expected so I am just wondering if there is something else I need to specify in the configuration of either the web server we are running, or within the html itself.
You can reproduce this by using the following.
- Open this code pen here
- You will see that the y-axis is formatted normally as expected.
- Now instead of using the CDN, copy paste the
plotly-cartesian.min.jscontents between the <script> tags in the html. - You will then see the weird characters show up.
This is the weird symbols using the local version
This is the normal version using the CDN
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リンクされたCodePenから始め、tickformat '.1e'を使用しながら、CDNビルドとplotly-cartesian.min.jsのインライン内容を比較します。0から1の間の値で予期しない記号を再現し、その後、追加の文字セット設定を必要とせずに、ローカル版とCDN版で一致するy軸ラベルがレンダリングされることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100