Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about canvasjs

Read more about canvasjs

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - canvasjs

How to use interpolation for the ID attribute in Jade/Pug

I am trying to dynamically build chartContainers based on a MongoDB Database. For some background, I am using CanvasJS to create stock charts. I have a "stocks" variable I iterate through wh...
test-img

SarthakSin

javascript

html

pug

canvasjs

Votes: 0

Answers: 2

Latest Answer

What you're looking for is called attribute interpolation in Pug. In Pug, the shorthand for giving an element an id attribute is the hash syntax you're already using and familiar with: div#chartContai...
test-img

Sean

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved