New user to Amcharts (and programming!) and was trying to use one of their examples (https://codepen.io/team/amcharts/pen/gOpWroQ), but when I pull the data from and external JSON file, it doesn’t work properly. The JSON structure and format is correct and I literally copied the data from the JSON file …
Tag: javascript
Match based on a field only with non-empty array
I am trying to do a filter on something. Here is a simplified layout of my Order model: I want to query the documents based on the ingredients that they contain. I have an array of items to search through “objectifiedIngredients”. If it has ingredients in it, then I want to search for orders that …
my friend and I have a problem in js and html, we cannot make a 3d model out of a button
(sry for bad eng, we are from Moskow and we are stupid D) We have a problem, so to speak: quation. I with my bro write sam any code on HTMl, JS. and we must make 3d model wiht interactive button, …
Change text color of a ternary operator’s expression to red or green depending on which one is executed
I’m very new to Javascript and I’ve been stuck on this problem for a few hours now and I cant seem to find out how to solve the problem. Is there a way to have the ternary operator output “$” with green text or “-$” as red text? The way I have it set up right now will check…
I want to fix clicking menu button problems
To hide the menu when I click on windows or scroll, I tried like this. My html is like this. And css is like this. If you try this code, you can find when you click window once, then the button doesn’t work. When I click windows once, dropdown showed when I click the button twice. I want to solve
Bootstrap Card Render Problem in Google Chrome
Hello I tried to populate Bootstrap cards in a JSP file, but there is this rendering issue with chrome, where card becomes invisible. It works fine in firefox. I have tried inspecting the elements, it was fine. But when I try to scroll down, the card vanishes. Please help me how to resolve this issue. Here is…
Render vue component in data
I trying to make custom tooltip for apexcharts like in example: https://apexcharts.com/docs/options/tooltip/# and it’s works, but when I set in return some vue component nothing shows. Why is this happening and how to fix it? Answer To make Vue render the component correctly, you’ll have to tell i…
Multiple stylesheet does not working with Webpack 5.11.0
Swiper bundler CSS has a base64 font-face, When I was trying to load it into my index.ts (main entry) file it gives me the following error. I was tried a lot of loaders (url-loader, base64-font-loader, etc) for this but none of these were worked for me. How can I fix this problem? Which loader should I use to…
Using method defined in the constructor after querying document from database
UPDATE ( ANOTHER SOLUTION) What I was looking for, I found out later, was the possibility of making the method static. Then I can apply the method independently from the class. Supposing I defined the following contructor: After fetching the User via CRUD operation (ex, findOne), I get an object back, the one…
framework7: broken tab links after stripping worker IDs from URL
shinyMobile’s inst/framework7-5.7.8/my-app.js file has the following code chunk at the top: It appends a random string (the worker ID) to the URL of the app whenever it is not run locally. E.g., https://my_domain/my_app/ becomes https://my_domain/my_app/_w_123456/. This is super annoying, as it prevents…