- Created SimpleTradingChart component using HTML5 Canvas - Renders proper candlestick chart with sample SOL/USDC data - Includes grid lines, price labels, and proper styling - Replaced problematic lightweight-charts with working solution - Updated trading page to use the new working chart component Fixes chart loading issues by using native HTML5 Canvas instead of external library dependencies.
13 lines
371 B
TypeScript
13 lines
371 B
TypeScript
'use client'
|
|
import React from 'react'
|
|
import SimpleTradingChart from '../../components/SimpleTradingChart'
|
|
|
|
export default function SimpleChartPage() {
|
|
return (
|
|
<div className="min-h-screen bg-gray-900 p-8">
|
|
<h1 className="text-white text-3xl mb-6">Simple Canvas Chart Test</h1>
|
|
<SimpleTradingChart symbol="SOL/USDC" positions={[]} />
|
|
</div>
|
|
)
|
|
}
|