Code Monkey home page Code Monkey logo

Comments (5)

micmro avatar micmro commented on May 23, 2024

It is hard to find out why it is not working without seeing the output data, but I assume it has to do with the calculation of the start and end times or some other differences in the format.
Does the output match the WaterfallDocs interface?

from perfcascade.

janarthan35 avatar janarthan35 commented on May 23, 2024

The output ( svg element ) of live demo matches with my above output ( I have given same data ) .
Svg element of live demo and my chart are same .
is there is any problem with css ??
i need to import any additional css ?

from perfcascade.

micmro avatar micmro commented on May 23, 2024

Sorry, I did not meant the structure of the SVG, but the JSON object that is passed to the PerfCascade constructor (e.g. here).

But right, there is also the perf-cascade.css CSS file.

from perfcascade.

janarthan35 avatar janarthan35 commented on May 23, 2024

Data is available before passing it to PerfCascade constructor.
I have copied css from "perf-cascade.css " and pasted in my component but still it didn't work .
The data before passing to PerfCascade constructor :
{
docIsTLS:true,
durationMs:11929,
entries:[
{
end:2388,
responseDetails:{
icon:{

},
indicators:Array(2),
requestType:"html",
rowClass:"row-item",
statusCode:200
} segments:(4) [
{
end:1652,
start:966,
total:686,
type:"connect"
},
{
end:1727,
start:1652,
total:75,
type:"send"
},
{
end:1953,
start:1727,
total:226,
type:"wait"
},
{
end:2386,
start:1953,
total:433,
type:"receive"
}
],
start:966,
tabs:[
{
content:"

Errors

↵ <d…r/Status Code↵
200 OK
",
tabClass:"",
title:"General"
},
{
content:"
↵ ↵
Method
GET</…ll Request Headers↵
↵ ↵
",
tabClass:"",
title:"Request"
},
{
content:"
↵ ↵
Status
200 O…l Response Headers↵
↵ ↵
",
tabClass:"",
title:"Response"
},
{
content:"↵
Total
1422…"receive">Receive↵
433 ms
↵ ",
tabClass:"",
title:"Timings"
},
{
renderContent:ƒ,
tabClass:"raw-data",
title:"Raw Data"
}
],
total:1422,
url:"https://www.google.com/"
}
],
marks:[

],
title:"googleHomePage"
}

from perfcascade.

janarthan35 avatar janarthan35 commented on May 23, 2024

Thanks for your support. I got waterfall chart by passing json data.

from perfcascade.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.