kroitor / asciichart

Nice-looking lightweight console ASCII line charts ╭┈╯ for NodeJS, browsers and terminal, no dependencies
MIT License
1.84k stars 94 forks source link

Chart not showing lines. Maybe im missing a font? #59

Closed thisisloze closed 3 years ago

thisisloze commented 3 years ago

Using the CCXT basic chart example and I keep getting weird symbols.

I am running on windows.

image

kroitor commented 3 years ago

Hi @thisisloze !

Maybe im missing a font?

Yes, you need a proper UTF-8 encoding for it. That is usually a setting of the terminal you use. Let us know if that does not help.

thisisloze commented 3 years ago

Windows cmd prompt doesnt allow UTF-8 encoding.

thisisloze commented 3 years ago

What windows alternative can I use?

thisisloze commented 3 years ago

It looks like I was able to get closer usine ConsoleEMU set to UFT8 but some symbols are still unknown( but less). Any ideas? image

thisisloze commented 3 years ago

Fixed it! For anyone using windows, you need to download ConEmu. Setup a Startup Enviroment and add : chcp utf8 Then you need to go to fonts change the size to 20 and enable alternative font and set that to @Microsoft JhengHei Light and set UNICODE Ranges to Pseudographics!

Then it looks super nice!

thisisloze commented 3 years ago

Here is the end result. image