Open JasinYip opened 2 years ago
I would like to implement a stock price monitor plugin with using different colors for the title.
For example:
APPL +3.5%, TSLA -2.2%
It will be great if I can make the +3.5% green and the -2.2% red.
+3.5%
-2.2%
But for now, the parameters of xbar looks can only set a single color for it.
You should be able to use ANSI colour codes
I tried chalk to generate ANSI color code and it doesn't works, only shows the default color.
const chalk = require('chalk') console.log(chalk.green('hihi'));
I would like to implement a stock price monitor plugin with using different colors for the title.
For example:
It will be great if I can make the
+3.5%
green and the-2.2%
red.But for now, the parameters of xbar looks can only set a single color for it.