I have a dictionary with values [-1,0,1]
How can I replace values with icons ( symbols ) in dbc.card like the following
Not specific to these icons but can be any that generates from TEXT ICONS ( not images )
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
AIMPED
October 27, 2022, 8:08pm
2
HI @yogi_dhiman ,
this might be interesting:
haha - this is a lot of fun! I was trying to think of an example for pattern matching callback for the Dash Example Index and this topic inspired me.
By using pattern matching callbacks, you can avoid having 52 inputs in the callback.
I’ll probably turn this into some type of simple game for the Example Index, but in the meantime, here’s my version:
[card_game]
import random
from dash import Dash, html, Input, Output, ALL, ctx
import dash_bootstrap_components as dbc
from dash_iconify import…
Very Interesting AIMPED … Can i get something like the following too ???
I have a class of Movies ( & want to display add on features it carry Rating ( A+) , Trend ( UP)
may be would like to add or change display features per requirement maybe Price ($30) … Is it possible to create Icon like this
Hi @yogi_dhiman
You might find this post helpful:
Ok, Here’s another example. I hope it qualifies as a “cool card”
It’s common to display KPIs in a group of cards. This app creates the cards in a loop. It’s styled dynamically based on the data using Bootstrap Utility classes and icons. It’s updated with “live data” every 10 seconds (to stay within the API’s free tier
[image]
import dash
from dash import Dash, dcc, html, Input, Output
import dash_bootstrap_components as dbc
import requests
app = Dash(__name__, external_sty…
1 Like
AIMPED
October 30, 2022, 3:45pm
6
Hi @nakaru87 welcome to the forums.
I don`t see, how this is related @yogi_dhiman ’s question. If you require help with your code, plase start a new topic.
Please have a read here also:
Your Plotly community members answer a great majority of the questions posted on the forum. However, responders’ time is limited. To greatly increase your chances of getting your post answered, your questions need to be easy to read and easy to reply to . This post will illustrate exactly how to do that.
TL;DR: jump to section WHILE POSTING.
BEFORE POSTING:
Often, strange or problematic behaviour has been fixed in the most recent version of dash or of plotly so always ensure you’re using th…
1 Like
Hi Ann
https://iconify.design/
Any other source of icons I can use with iconify ; I am looking for some financial icons
@yogi_dhiman
https://iconify.design/ has the largest free open source icon set I know of.
There are others, including paid versions - like Font Awesome Pro with more icons. You can add icons by including the stylesheet in your app. For example:
fontawseome = "https://use.fontawesome.com/releases/v6.1.1/css/all.css"
app = Dash(__name__, external_stylesheet=[fontawesome]
@yogi_dhiman May I know which type of icons you are looking for and cannot find in iconify?
hmm… okay lets say
signs of
bull market , bearish market , single candle stick , buy a stock , sell a stock etc
please check following images
Download this Stock Market Trading Icons Set, Icons Stock, Market Icons, Trader PNG clipart image with transparent background for free. Pngtree provides millions of free png, vectors, clipart images and psd graphic resources for designers.| 5518613
https://www.dreamstime.com/stock-images-stock-market-symbol-line-icon-set-white-background-vector-illustration-image32999184
In short a library that’s dedicated to Stock Market Jargon ( searching this in site just give few icons )
Is it possible to use iconify icons on scatter plot instead of symbols ?