@dritan/mcp 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -162,7 +162,9 @@ function buildOhlcvChartUrl(mint, timeframe, bars, width, height) {
|
|
|
162
162
|
},
|
|
163
163
|
};
|
|
164
164
|
const encoded = encodeURIComponent(JSON.stringify(config));
|
|
165
|
-
|
|
165
|
+
// QuickChart defaults to Chart.js v2. Our config uses v3+/v4 scale syntax (`options.scales.{id}`),
|
|
166
|
+
// so pinning `v=4` prevents runtime render errors like "Cannot read properties of undefined (reading 'options')".
|
|
167
|
+
return `https://quickchart.io/chart?w=${width}&h=${height}&f=png&v=4&c=${encoded}`;
|
|
166
168
|
}
|
|
167
169
|
function getPlatformInstallHint(binary) {
|
|
168
170
|
switch (process.platform) {
|